static const char CONTENT_LIB_JS[] PROGMEM = 
  "\"use strict\";function _createForOfIteratorHelper(e,t){var n;if(\"undefined\"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&\"number\"==typeof e.length){n&&(e=n);var r=0,t=function(){};return{s:t,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:t}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if(\"string\"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return\"Map\"===(n=\"Object\"===n&&e.constructor?e.constructor.name:n)||\"Set\"===n?Array.from(e):\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _typeof(e){return(_typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e})(e)}function BaseViewModel(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.remoteUrl=t,ko.mapping.fromJS(e,n,this),this.fetching=ko.observable(!1)}function ConfigViewModel(e){var t=this,n=ko.pureComputed(function(){return e()+\"/config\"});function r(e,t){t.trim()!==e()&&e(t.trim())}BaseViewModel.call(this,{ssid:\"\",pass:\"\",emoncms_server:\"data.openevse.com/emoncms\",emoncms_apikey:\"\",emoncms_node:\"\",emoncms_fingerprint:\"\",emoncms_enabled:0,mqtt_protocol:\"mqtt\",mqtt_protocol_enable:!1,mqtt_server:\"\",mqtt_port:1883,mqtt_port_enable:!1,mqtt_reject_unauthorized:!0,mqtt_reject_unauthorized_enable:!1,mqtt_topic:\"\",mqtt_user:\"\",mqtt_pass:\"\",mqtt_solar:\"\",mqtt_grid_ie:\"\",mqtt_vrms:\"\",mqtt_enabled:0,mqtt_supported_protocols:[\"mqtt\"],http_supported_protocols:[],ohm_enabled:0,ohmkey:\"\",www_username:\"\",www_password:\"\",hostname:!1,sntp_enabled:!1,sntp_hostname:!1,firmware:\"-\",protocol:\"-\",espflash:0,diodet:0,gfcit:0,groundt:0,relayt:0,ventt:0,tempt:0,scale:1,offset:0,version:\"0.0.0\",time_zone:!1,divert_enabled:!1,divert_PV_ratio:1,divert_attack_smoothing_factor:.4,divert_decay_smoothing_factor:.05,divert_min_charge_time:600,charge_mode:\"full\",pause_uses_disabled:!1},n),this.ssid.subscribe(function(e){r(t.ssid,e)}),this.emoncms_server.subscribe(function(e){r(t.emoncms_server,e)}),this.emoncms_apikey.subscribe(function(e){r(t.emoncms_apikey,e)}),this.emoncms_node.subscribe(function(e){r(t.emoncms_node,e)}),this.emoncms_fingerprint.subscribe(function(e){r(t.emoncms_fingerprint,e)}),this.mqtt_server.subscribe(function(e){r(t.mqtt_server,e)}),this.mqtt_topic.subscribe(function(e){r(t.mqtt_topic,e)}),this.mqtt_user.subscribe(function(e){r(t.mqtt_user,e)}),this.mqtt_solar.subscribe(function(e){r(t.mqtt_solar,e)}),this.mqtt_grid_ie.subscribe(function(e){r(t.mqtt_grid_ie,e)}),this.mqtt_vrms.subscribe(function(e){r(t.mqtt_vrms,e)}),this.ohmkey.subscribe(function(e){r(t.ohmkey,e)}),this.www_username.subscribe(function(e){r(t.www_username,e)}),this.hostname.subscribe(function(e){r(t.hostname,e)}),this.sntp_hostname.subscribe(function(e){r(t.sntp_hostname,e)})}function StatusViewModel(e){var t=this,n=ko.pureComputed(function(){return e()+\"/status\"});BaseViewModel.call(t,{mode:\"ERR\",wifi_client_connected:0,eth_connected:0,net_connected:0,srssi:\"\",ipaddress:\"\",packets_sent:0,packets_success:0,emoncms_connected:0,emoncms_message:!1,mqtt_connected:0,ohm_hour:\"\",free_heap:0,comm_sent:0,comm_success:0,rapi_connected:1,evse_connected:1,amp:0,voltage:!1,pilot:0,temp:!1,temp1:!1,temp2:!1,temp3:!1,temp4:!1,state:0,vehicle:!1,colour:!1,manual_override:!1,elapsed:0,wattsec:0,watthour:0,gfcicount:0,nogndcount:0,stuckcount:0,divertmode:1,solar:0,grid_ie:0,charge_rate:0,available_current:!1,smoothed_available_current:!1,divert_update:0,divert_active:!1,ota_update:!1,time:!1,offset:!1},n),t.isWiFiError=ko.pureComputed(function(){return\"ERR\"===t.mode()}),t.isWifiClient=ko.pureComputed(function(){return\"STA\"===t.mode()||\"STA+AP\"===t.mode()}),t.isWifiAccessPoint=ko.pureComputed(function(){return\"AP\"===t.mode()||\"STA+AP\"===t.mode()}),t.isWired=ko.pureComputed(function(){return\"Wired\"===t.mode()}),t.fullMode=ko.pureComputed(function(){switch(t.mode()){case\"AP\":return\"Access Point (AP)\";case\"STA\":return\"Client (STA)\";case\"STA+AP\":return\"Client + Access Point (STA+AP)\";case\"Wired\":return\"Wired Ethernet\"}return\"Unknown (\"+t.mode()+\")\"}),this.estate=ko.pureComputed(function(){var e;switch(t.state()){case 0:e=\"Starting\";break;case 1:e=\"EV Not connected\";break;case 2:e=\"EV Connected\";break;case 3:e=\"Charging\";break;case 4:e=\"Vent Required\";break;case 5:e=\"Diode Check Failed\";break;case 6:e=\"GFCI Fault\";break;case 7:e=\"No Earth Ground\";break;case 8:e=\"Stuck Relay\";break;case 9:e=\"GFCI Self Test Failed\";break;case 10:e=\"Over Temperature\";break;case 11:e=\"Over Current\";break;case 254:case 255:!(e=\"Waiting\")!==t.vehicle()&&(e+=\" - EV \",1===t.vehicle()?e+=\"Connected\":e+=\"Not connected\");break;default:e=\"Invalid\"}return e})}function WiFiScanResultViewModel(e){var t=this;ko.mapping.fromJS(e,{},t),t.strength=ko.computed(function(){var e=t.rssi();return-50<=e?5:-60<=e?4:-67<=e?3:-70<=e?2:-80<=e?1:0})}function WiFiScanViewModel(e){var t=this,n=ko.pureComputed(function(){return e()+\"/scan\"}),r={key:function(e){return ko.utils.unwrapObservable(e.bssid)},create:function(e){return new WiFiScanResultViewModel(e.data)}};t.results=ko.mapping.fromJS([],r),t.filteredResults=ko.mapping.fromJS([],r),t.fetching=ko.observable(!1),t.update=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(){};t.fetching(!0),$.get(n(),function(n){var e;0<n.length&&(n=n.sort(function(e,t){return e.ssid===t.ssid?e.rssi<t.rssi?1:-1:e.ssid<t.ssid?-1:1}),ko.mapping.fromJS(n,t.results),e=n.filter(function(t,e){return-80<=t.rssi&&e===n.findIndex(function(e){return t.ssid===e.ssid})}).sort(function(e,t){return e.rssi<t.rssi?1:-1}),ko.mapping.fromJS(e,t.filteredResults))},\"json\").always(function(){t.fetching(!1),e()})}}function WiFiConfigViewModel(e,t,n,r){var o=this;o.baseEndpoint=e,o.config=t,o.status=n,o.scan=r,o.scanUpdating=ko.observable(!1),o.selectedNet=ko.observable(!1),o.bssid=ko.pureComputed({read:function(){return!1===o.selectedNet()?\"\":o.selectedNet().bssid()},write:function(e){for(var t=0;t<o.scan.results().length;t++){var n=o.scan.results()[t];if(e===n.bssid())return void o.selectedNet(n)}}}),o.select=function(e){o.selectedNet(e)},o.setSsid=function(e){if(!1===o.selectedNet()||e!==o.selectedNet().ssid()){for(var t=0;t<o.scan.filteredResults().length;t++)if(e===(n=o.scan.filteredResults()[t]).ssid())return void o.selectedNet(n);for(var n,t=0;t<o.scan.results().length;t++)if(e===(n=o.scan.results()[t]).ssid())return void o.selectedNet(n);o.selectedNet(!1)}};var i=null,a=!1;o.startScan=function(){o.scanUpdating()||(a=!0,o.scanUpdating(!0),null!==i&&(clearTimeout(i),i=null),o.scan.update(function(){if(a&&(i=setTimeout(o.startScan,3e3)),\"\"===o.bssid())for(var e=o.config.ssid(),t=0;t<o.scan.results().length;t++){var n=o.scan.results()[t];if(e===n.ssid()){o.bssid(n.bssid());break}}o.scanUpdating(!1)}))},o.stopScan=function(){a=!1,o.scanUpdating()||null!==i&&(clearTimeout(i),i=null)},o.enableScan=function(e){e?o.startScan():o.stopScan()},o.forceConfig=ko.observable(!1),o.canConfigure=ko.pureComputed(function(){return!(o.status.isWiFiError()||o.wifiConnecting()||o.status.isWired())&&(!o.status.isWifiClient()||o.forceConfig())}),o.wifiConnecting=ko.observable(!1),o.canConfigure.subscribe(function(e){o.enableScan(e)}),o.status.wifi_client_connected.subscribe(function(e){e&&o.wifiConnecting(!1)}),o.enableScan(o.canConfigure()),o.saveNetworkFetching=ko.observable(!1),o.saveNetworkSuccess=ko.observable(!1),o.saveNetwork=function(){\"\"===o.config.ssid()?alert(\"Please select network\"):(o.saveNetworkFetching(!0),o.saveNetworkSuccess(!1),$.post(o.baseEndpoint()+\"/savenetwork\",{ssid:o.config.ssid(),pass:o.config.pass()},function(){o.status.wifi_client_connected(!1),o.forceConfig(!1),o.wifiConnecting(!0),o.saveNetworkSuccess(!0)}).fail(function(){alert(\"Failed to save WiFi config\")}).always(function(){o.saveNetworkFetching(!1)}))},o.turnOffAccessPointFetching=ko.observable(!1),o.turnOffAccessPointSuccess=ko.observable(!1),o.turnOffAccessPoint=function(){o.turnOffAccessPointFetching(!0),o.turnOffAccessPointSuccess(!1),$.post(o.baseEndpoint()+\"/apoff\",{},function(e){console.log(e),\"\"!==o.status.ipaddress()?setTimeout(function(){window.location=\"//\"+o.status.ipaddress(),o.turnOffAccessPointSuccess(!0)},3e3):o.turnOffAccessPointSuccess(!0)}).fail(function(){alert(\"Failed to turn off Access Point\")}).always(function(){o.turnOffAccessPointFetching(!1)})}}function PasswordViewModel(t){var e=this;e.show=ko.observable(!1),e.value=ko.computed({read:function(){return e.show()&&e.isDummy()?\"\":t()},write:function(e){t(e)}}),e.isDummy=ko.computed(function(){return[\"___DUMMY_PASSWORD___\",\"_DUMMY_PASSWORD\"].includes(t())})}function ConfigGroupViewModel(t,e){var n=this;n.fetching=ko.observable(!1),n.success=ko.observable(!1),n.value=ko.computed(e),n._validate=function(){return!0},n._done=function(){return!0},n._fail=function(){alert(\"Failed to save config\")},n._always=function(){return!0},n.value.subscribe(function(){n.success(!1)}),n.save=function(){var e=n.value();n._validate(e)&&(n.fetching(!0),n.success(!1),$.ajax(t()+\"/config\",{method:\"POST\",data:JSON.stringify(e),contentType:\"application/json\"}).done(function(){n.success(!0),n._done()}).fail(n._fail).always(function(){n.fetching(!1),n._always()}))},n.validate=function(e){return n._validate=e,this},n.done=function(e){return n._done=e,this},n.fail=function(e){return n._fail=e,this},n.always=function(e){return n._always=e,this}}function EventInfoViewModel(e){var t=this;\"object\"==_typeof(e)?ko.mapping.fromJS(e,{},this):ko.mapping.fromJS({id:e,state:\"active\",time:\"00:00:00\",days:[]},{},this),this.get=function(){return{id:t.id(),state:t.state(),days:t.days(),time:t.time()}}}function ScheduleViewModel(e){var o=this,i=ko.pureComputed(function(){return e()+\"/schedule\"}),t={key:function(e){return ko.utils.unwrapObservable(e.id)},create:function(e){return new EventInfoViewModel(e.data)}};function n(e){return/([01]\\d|2[0-3]):([0-5]\\d)(:[0-5]\\d)?/.test(e)}function a(e){var t=_createForOfIteratorHelper(o.events());try{for(t.s();!(n=t.n()).done;){var n=n.value;if(n.id()==e)return n}}catch(e){t.e(e)}finally{t.f()}return!1}o.events=ko.mapping.fromJS([],t),o.fetching=ko.observable(!1),o.delayTimerEnabled=ko.observable(!1),o.updatingDelayTimer=ko.observable(!1),o.update=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(){};o.fetching(!0),$.get(i(),function(e){ko.mapping.fromJS(e,o.events),o.delayTimerEnabled(o.delayTimerValid())},\"json\").always(function(){o.fetching(!1),e()})},o.delayTimerValid=ko.pureComputed(function(){return n(o.delayTimerStart())&&n(o.delayTimerStop())}),o.startDelayTimer=function(){o.updatingDelayTimer(!0);var e=[],t=_createForOfIteratorHelper(o.events());try{for(t.s();!(n=t.n()).done;){var n=n.value;e.push(n.get())}}catch(e){t.e(e)}finally{t.f()}$.post(i(),ko.toJSON(e),function(){o.delayTimerEnabled(!0)}).fail(function(){alert(\"Failed to save schedule\")}).always(function(){o.updatingDelayTimer(!1)})},o.stopDelayTimer=function(){o.updatingDelayTimer(!0);var e=[],t=_createForOfIteratorHelper(o.events());try{for(t.s();!(n=t.n()).done;){var n=n.value;e.push(function(r){return new Promise(function(t,n){$.ajax({url:i()+\"/\"+r,type:\"DELETE\",success:function(e){o.events.remove(function(e){return e.id()==r}),t(e)},error:function(e){n(e)}})})}(n.id()))}}catch(e){t.e(e)}finally{t.f()}Promise.all(e).then(function(){o.delayTimerEnabled(!1)}).finally(function(){o.updatingDelayTimer(!1)})},o.delayTimerStart=ko.computed({read:function(){var e=a(1);return!1!==e?e.time():\"--:--\"},write:function(e){var t,n,r;r=e,!(n=\"active\")===(e=a(t=1))&&(e=new EventInfoViewModel(t),o.events.push(e)),e.time(r),e.state(n),e.days([\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"])}}),o.delayTimerStop=ko.computed({read:function(){var e=a(2);return!1!==e?e.time():\"--:--\"},write:function(e){var t=a(2);!1!==t?t.time(e):(t=new EventInfoViewModel({id:2,state:\"disable\",time:e,days:[\"monday\",\"tuesday\",\"wednesday\",\"thursday\",\"friday\",\"saturday\",\"sunday\"]}),o.events.push(t))}})}!function(e,t){\"object\"===(\"undefined\"==typeof module?\"undefined\":_typeof(module))&&\"object\"===_typeof(module.exports)?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error(\"jQuery requires a window with a document\");return t(e)}:t(e)}(\"undefined\"!=typeof window?window:void 0,function(T,e){function g(e){return null!=e&&e===e.window}var t=[],n=Object.getPrototypeOf,s=t.slice,v=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,o=t.indexOf,r={},i=r.toString,m=r.hasOwnProperty,a=m.toString,c=a.call(Object),b={},y=function(e){return\"function\"==typeof e&&\"number\"!=typeof e.nodeType&&\"function\"!=typeof e.item},C=T.document,l={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,o,i=(n=n||C).createElement(\"script\");if(i.text=e,t)for(r in l)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function h(e){return null==e?e+\"\":\"object\"===_typeof(e)||\"function\"==typeof e?r[i.call(e)]||\"object\":_typeof(e)}var k=function e(t,n){return new e.fn.init(t,n)};function f(e){var t=!!e&&\"length\"in e&&e.length,n=h(e);return!y(e)&&!g(e)&&(\"array\"===n||0===t||\"number\"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:\"3.6.0\",constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=k.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(k.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},k.extend=k.fn.extend=function(){var e,t,n,r,o,i=arguments[0]||{},a=1,s=arguments.length,u=!1;for(\"boolean\"==typeof i&&(u=i,i=arguments[a]||{},a++),\"object\"===_typeof(i)||y(i)||(i={}),a===s&&(i=this,a--);a<s;a++)if(null!=(e=arguments[a]))for(t in e)n=e[t],\"__proto__\"!==t&&i!==n&&(u&&n&&(k.isPlainObject(n)||(r=Array.isArray(n)))?(o=i[t],o=r&&!Array.isArray(o)?[]:r||k.isPlainObject(o)?o:{},r=!1,i[t]=k.extend(u,o,n)):void 0!==n&&(i[t]=n));return i},k.extend({expando:\"jQuery\"+(\"3.6.0\"+Math.random()).replace(/\\D/g,\"\"),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||\"[object Object]\"!==i.call(e))&&(!(e=n(e))||\"function\"==typeof(e=m.call(e,\"constructor\")&&e.constructor)&&a.call(e)===c)},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(f(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){t=t||[];return null!=e&&(f(Object(e))?k.merge(t,\"string\"==typeof e?[e]:e):u.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:o.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!=a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(f(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return v(a)},guid:1,support:b}),\"function\"==typeof Symbol&&(k.fn[Symbol.iterator]=t[Symbol.iterator]),k.each(\"Boolean Number String Function Array Date RegExp Object Error Symbol\".split(\" \"),function(e,t){r[\"[object \"+t+\"]\"]=t.toLowerCase()});var d=function(n){function f(e,t){return e=\"0x\"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))}function r(){T()}var e,p,w,i,o,h,d,g,x,u,c,T,C,a,k,v,s,l,m,E=\"sizzle\"+ +new Date,b=n.document,S=0,y=0,_=ue(),N=ue(),A=ue(),D=ue(),O=function(e,t){return e===t&&(c=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,M=t.push,L=t.push,P=t.slice,I=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",H=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",B=\"(?:\\\\\\\\[\\\\da-fA-F]{1,6}\"+H+\"?|\\\\\\\\[^\\\\r\\\\n\\\\f]|[\\\\w-]|[^\\0-\\\\x7f])+\",F=\"\\\\[\"+H+\"*(\"+B+\")(?:\"+H+\"*([*^$|!~]?=)\"+H+\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+B+\"))|)\"+H+\"*\\\\]\",$=\":(\"+B+\")(?:\\\\((('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+F+\")*)|.*)\\\\)|)\",W=new RegExp(H+\"+\",\"g\"),V=new RegExp(\"^\"+H+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+H+\"+$\",\"g\"),U=new RegExp(\"^\"+H+\"*,\"+H+\"*\"),J=new RegExp(\"^\"+H+\"*([>+~]|\"+H+\")\"+H+\"*\"),z=new RegExp(H+\"|>\"),G=new RegExp($),X=new RegExp(\"^\"+B+\"$\"),Y={ID:new RegExp(\"^#(\"+B+\")\"),CLASS:new RegExp(\"^\\\\.(\"+B+\")\"),TAG:new RegExp(\"^(\"+B+\"|[*])\"),ATTR:new RegExp(\"^\"+F),PSEUDO:new RegExp(\"^\"+$),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+H+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+H+\"*(?:([+-]|)\"+H+\"*(\\\\d+)|))\"+H+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+R+\")$\",\"i\"),needsContext:new RegExp(\"^\"+H+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+H+\"*((?:-\\\\d)?\\\\d*)\"+H+\"*\\\\)|)(?=[^-]|$)\",\"i\")},K=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,Z=/^h\\d$/i,ee=/^[^{]+\\{\\s*\\[native \\w/,te=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,ne=/[+~]/,re=new RegExp(\"\\\\\\\\[\\\\da-fA-F]{1,6}\"+H+\"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\",\"g\"),oe=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,ie=function(e,t){return t?\"\\0\"===e?\"�\":e.slice(0,-1)+\"\\\\\"+e.charCodeAt(e.length-1).toString(16)+\" \":\"\\\\\"+e},ae=be(function(e){return!0===e.disabled&&\"fieldset\"===e.nodeName.toLowerCase()},{dir:\"parentNode\",next:\"legend\"});try{L.apply(t=P.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){L={apply:t.length?function(e,t){M.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(t,e,n,r){var o,i,a,s,u,c,l,f=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],\"string\"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!r&&(T(e),e=e||C,k)){if(11!==d&&(u=te.exec(t)))if(o=u[1]){if(9===d){if(!(a=e.getElementById(o)))return n;if(a.id===o)return n.push(a),n}else if(f&&(a=f.getElementById(o))&&m(e,a)&&a.id===o)return n.push(a),n}else{if(u[2])return L.apply(n,e.getElementsByTagName(t)),n;if((o=u[3])&&p.getElementsByClassName&&e.getElementsByClassName)return L.apply(n,e.getElementsByClassName(o)),n}if(p.qsa&&!D[t+\" \"]&&(!v||!v.test(t))&&(1!==d||\"object\"!==e.nodeName.toLowerCase())){if(l=t,f=e,1===d&&(z.test(t)||J.test(t))){for((f=ne.test(t)&&ge(e.parentNode)||e)===e&&p.scope||((s=e.getAttribute(\"id\"))?s=s.replace(oe,ie):e.setAttribute(\"id\",s=E)),i=(c=h(t)).length;i--;)c[i]=(s?\"#\"+s:\":scope\")+\" \"+me(c[i]);l=c.join(\",\")}try{return L.apply(n,f.querySelectorAll(l)),n}catch(e){D(t,!0)}finally{s===E&&e.removeAttribute(\"id\")}}}return g(t.replace(V,\"$1\"),e,n,r)}function ue(){var n=[];function r(e,t){return n.push(e+\" \")>w.cacheLength&&delete r[n.shift()],r[e+\" \"]=t}return r}function ce(e){return e[E]=!0,e}function le(e){var t=C.createElement(\"fieldset\");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split(\"|\"),r=n.length;r--;)w.attrHandle[n[r]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(t){return function(e){return\"form\"in e?e.parentNode&&!1===e.disabled?\"label\"in e?\"label\"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:\"label\"in e&&e.disabled===t}}function he(a){return ce(function(i){return i=+i,ce(function(e,t){for(var n,r=a([],e.length,i),o=r.length;o--;)e[n=r[o]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!K.test(t||e&&e.nodeName||\"HTML\")},T=se.setDocument=function(e){var t,e=e?e.ownerDocument||e:b;return e!=C&&9===e.nodeType&&e.documentElement&&(a=(C=e).documentElement,k=!o(C),b!=C&&(t=C.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener(\"unload\",r,!1):t.attachEvent&&t.attachEvent(\"onunload\",r)),p.scope=le(function(e){return a.appendChild(e).appendChild(C.createElement(\"div\")),void 0!==e.querySelectorAll&&!e.querySelectorAll(\":scope fieldset div\").length}),p.attributes=le(function(e){return e.className=\"i\",!e.getAttribute(\"className\")}),p.getElementsByTagName=le(function(e){return e.appendChild(C.createComment(\"\")),!e.getElementsByTagName(\"*\").length}),p.getElementsByClassName=ee.test(C.getElementsByClassName),p.getById=le(function(e){return a.appendChild(e).id=E,!C.getElementsByName||!C.getElementsByName(E).length}),p.getById?(w.filter.ID=function(e){var t=e.replace(re,f);return function(e){return e.getAttribute(\"id\")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&k){e=t.getElementById(e);return e?[e]:[]}}):(w.filter.ID=function(e){var t=e.replace(re,f);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode(\"id\");return e&&e.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode(\"id\"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode(\"id\"))&&n.value===e)return[i]}return[]}}),w.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if(\"*\"!==e)return i;for(;n=i[o++];)1===n.nodeType&&r.push(n);return r},w.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&k)return t.getElementsByClassName(e)},s=[],v=[],(p.qsa=ee.test(C.querySelectorAll))&&(le(function(e){var t;a.appendChild(e).innerHTML=\"<a id='\"+E+\"'></a><select id='\"+E+\"-\\r\\\\' msallowcapture=''><option selected=''></option></select>\",e.querySelectorAll(\"[msallowcapture^='']\").length&&v.push(\"[*^$]=\"+H+\"*(?:''|\\\"\\\")\"),e.querySelectorAll(\"[selected]\").length||v.push(\"\\\\[\"+H+\"*(?:value|\"+R+\")\"),e.querySelectorAll(\"[id~=\"+E+\"-]\").length||v.push(\"~=\"),(t=C.createElement(\"input\")).setAttribute(\"name\",\"\"),e.appendChild(t),e.querySelectorAll(\"[name='']\").length||v.push(\"\\\\[\"+H+\"*name\"+H+\"*=\"+H+\"*(?:''|\\\"\\\")\"),e.querySelectorAll(\":checked\").length||v.push(\":checked\"),e.querySelectorAll(\"a#\"+E+\"+*\").length||v.push(\".#.+[+~]\"),e.querySelectorAll(\"\\\\\\f\"),v.push(\"[\\\\r\\\\n\\\\f]\")}),le(function(e){e.innerHTML=\"<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>\";var t=C.createElement(\"input\");t.setAttribute(\"type\",\"hidden\"),e.appendChild(t).setAttribute(\"name\",\"D\"),e.querySelectorAll(\"[name=d]\").length&&v.push(\"name\"+H+\"*[*^$|!~]?=\"),2!==e.querySelectorAll(\":enabled\").length&&v.push(\":enabled\",\":disabled\"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(\":disabled\").length&&v.push(\":enabled\",\":disabled\"),e.querySelectorAll(\"*,:x\"),v.push(\",.*:\")})),(p.matchesSelector=ee.test(l=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&le(function(e){p.disconnectedMatch=l.call(e,\"*\"),l.call(e,\"[s!='']:x\"),s.push(\"!=\",$)}),v=v.length&&new RegExp(v.join(\"|\")),s=s.length&&new RegExp(s.join(\"|\")),t=ee.test(a.compareDocumentPosition),m=t||ee.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=t?function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==b&&m(b,e)?-1:t==C||t.ownerDocument==b&&m(b,t)?1:u?I(u,e)-I(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e==C?-1:t==C?1:o?-1:i?1:u?I(u,e)-I(u,t):0;if(o===i)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?de(a[r],s[r]):a[r]==b?-1:s[r]==b?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),p.matchesSelector&&k&&!D[t+\" \"]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=l.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){D(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),m(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=w.attrHandle[t.toLowerCase()],n=n&&j.call(w.attrHandle,t.toLowerCase())?n(e,t,!k):void 0;return void 0!==n?n:p.attributes||!k?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},se.escape=function(e){return(e+\"\").replace(oe,ie)},se.error=function(e){throw new Error(\"Syntax error, unrecognized expression: \"+e)},se.uniqueSort=function(e){var t,n=[],r=0,o=0;if(c=!p.detectDuplicates,u=!p.sortStable&&e.slice(0),e.sort(O),c){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return u=null,e},i=se.getText=function(e){var t,n=\"\",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if(\"string\"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(w=se.selectors={cacheLength:50,createPseudo:ce,match:Y,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(re,f),e[3]=(e[3]||e[4]||e[5]||\"\").replace(re,f),\"~=\"===e[2]&&(e[3]=\" \"+e[3]+\" \"),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),\"nth\"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(\"even\"===e[3]||\"odd\"===e[3])),e[5]=+(e[7]+e[8]||\"odd\"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||\"\":n&&G.test(n)&&(t=h(n,!0))&&(t=n.indexOf(\")\",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(re,f).toLowerCase();return\"*\"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+\" \"];return t||(t=new RegExp(\"(^|\"+H+\")\"+e+\"(\"+H+\"|$)\"))&&_(e,function(e){return t.test(\"string\"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute(\"class\")||\"\")})},ATTR:function(t,n,r){return function(e){e=se.attr(e,t);return null==e?\"!=\"===n:!n||(e+=\"\",\"=\"===n?e===r:\"!=\"===n?e!==r:\"^=\"===n?r&&0===e.indexOf(r):\"*=\"===n?r&&-1<e.indexOf(r):\"$=\"===n?r&&e.slice(-r.length)===r:\"~=\"===n?-1<(\" \"+e.replace(W,\" \")+\" \").indexOf(r):\"|=\"===n&&(e===r||e.slice(0,r.length+1)===r+\"-\"))}},CHILD:function(h,e,t,g,v){var m=\"nth\"!==h.slice(0,3),b=\"last\"!==h.slice(-4),y=\"of-type\"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,o,i,a,s,u,c=m!=b?\"nextSibling\":\"previousSibling\",l=e.parentNode,f=y&&e.nodeName.toLowerCase(),d=!n&&!y,p=!1;if(l){if(m){for(;c;){for(a=e;a=a[c];)if(y?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=c=\"only\"===h&&!u&&\"nextSibling\"}return!0}if(u=[b?l.firstChild:l.lastChild],b&&d){for(p=(s=(r=(o=(i=(a=l)[E]||(a[E]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]||[])[0]===S&&r[1])&&r[2],a=s&&l.childNodes[s];a=++s&&a&&a[c]||(p=s=0)||u.pop();)if(1===a.nodeType&&++p&&a===e){o[h]=[S,s,p];break}}else if(!1===(p=d?s=(r=(o=(i=(a=e)[E]||(a[E]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]||[])[0]===S&&r[1]:p))for(;(a=++s&&a&&a[c]||(p=s=0)||u.pop())&&((y?a.nodeName.toLowerCase()!==f:1!==a.nodeType)||!++p||(d&&((o=(i=a[E]||(a[E]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]=[S,p]),a!==e)););return(p-=v)===g||p%g==0&&0<=p/g}}},PSEUDO:function(e,i){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||se.error(\"unsupported pseudo: \"+e);return a[E]?a(i):1<a.length?(t=[e,e,\"\",i],w.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,t){for(var n,r=a(e,i),o=r.length;o--;)e[n=I(e,r[o])]=!(t[n]=r[o])}):function(e){return a(e,0,t)}):a}},pseudos:{not:ce(function(e){var r=[],o=[],s=d(e.replace(V,\"$1\"));return s[E]?ce(function(e,t,n,r){for(var o,i=s(e,null,r,[]),a=e.length;a--;)(o=i[a])&&(e[a]=!(t[a]=o))}):function(e,t,n){return r[0]=e,s(r,null,n,o),r[0]=null,!o.pop()}}),has:ce(function(t){return function(e){return 0<se(t,e).length}}),contains:ce(function(t){return t=t.replace(re,f),function(e){return-1<(e.textContent||i(e)).indexOf(t)}}),lang:ce(function(n){return X.test(n||\"\")||se.error(\"unsupported lang: \"+n),n=n.replace(re,f).toLowerCase(),function(e){var t;do{if(t=k?e.lang:e.getAttribute(\"xml:lang\")||e.getAttribute(\"lang\"))return(t=t.toLowerCase())===n||0===t.indexOf(n+\"-\")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return\"input\"===t&&!!e.checked||\"option\"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return\"input\"===t&&\"button\"===e.type||\"button\"===t},text:function(e){return\"input\"===e.nodeName.toLowerCase()&&\"text\"===e.type&&(null==(e=e.getAttribute(\"type\"))||\"text\"===e.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=function(t){return function(e){return\"input\"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return(\"input\"===t||\"button\"===t)&&e.type===n}}(e);function ve(){}function me(e){for(var t=0,n=e.length,r=\"\";t<n;t++)r+=e[t].value;return r}function be(a,e,t){var s=e.dir,u=e.next,c=u||s,l=t&&\"parentNode\"===c,f=y++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||l)return a(e,t,n);return!1}:function(e,t,n){var r,o,i=[S,f];if(n){for(;e=e[s];)if((1===e.nodeType||l)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||l)if(r=(o=e[E]||(e[E]={}))[e.uniqueID]||(o[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((o=r[c])&&o[0]===S&&o[1]===f)return i[2]=o[2];if((r[c]=i)[2]=a(e,t,n))return!0}return!1}}function ye(o){return 1<o.length?function(e,t,n){for(var r=o.length;r--;)if(!o[r](e,t,n))return!1;return!0}:o[0]}function we(e,t,n,r,o){for(var i,a=[],s=0,u=e.length,c=null!=t;s<u;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(s)));return a}function xe(p,h,g,v,m,e){return v&&!v[E]&&(v=xe(v)),m&&!m[E]&&(m=xe(m,e)),ce(function(e,t,n,r){var o,i,a,s=[],u=[],c=t.length,l=e||function(e,t,n){for(var r=0,o=t.length;r<o;r++)se(e,t[r],n);return n}(h||\"*\",n.nodeType?[n]:n,[]),f=!p||!e&&h?l:we(l,s,p,n,r),d=g?m||(e?p:c||v)?[]:t:f;if(g&&g(f,d,n,r),v)for(o=we(d,u),v(o,[],n,r),i=o.length;i--;)(a=o[i])&&(d[u[i]]=!(f[u[i]]=a));if(e){if(m||p){if(m){for(o=[],i=d.length;i--;)(a=d[i])&&o.push(f[i]=a);m(null,d=[],o,r)}for(i=d.length;i--;)(a=d[i])&&-1<(o=m?I(e,a):s[i])&&(e[o]=!(t[o]=a))}}else d=we(d===t?d.splice(c,d.length):d),m?m(null,t,d,r):L.apply(t,d)})}function Te(v,m){function e(e,t,n,r,o){var i,a,s,u=0,c=\"0\",l=e&&[],f=[],d=x,p=e||y&&w.find.TAG(\"*\",o),h=S+=null==d?1:Math.random()||.1,g=p.length;for(o&&(x=t==C||t||o);c!==g&&null!=(i=p[c]);c++){if(y&&i){for(a=0,t||i.ownerDocument==C||(T(i),n=!k);s=v[a++];)if(s(i,t||C,n)){r.push(i);break}o&&(S=h)}b&&((i=!s&&i)&&u--,e&&l.push(i))}if(u+=c,b&&c!==u){for(a=0;s=m[a++];)s(l,f,t,n);if(e){if(0<u)for(;c--;)l[c]||f[c]||(f[c]=q.call(r));f=we(f)}L.apply(r,f),o&&!e&&0<f.length&&1<u+m.length&&se.uniqueSort(r)}return o&&(S=h,x=d),l}var b=0<m.length,y=0<v.length;return b?ce(e):e}return ve.prototype=w.filters=w.pseudos,w.setFilters=new ve,h=se.tokenize=function(e,t){var n,r,o,i,a,s,u,c=N[e+\" \"];if(c)return t?0:c.slice(0);for(a=e,s=[],u=w.preFilter;a;){for(i in n&&!(r=U.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(o=[])),n=!1,(r=J.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(V,\" \")}),a=a.slice(n.length)),w.filter)!(r=Y[i].exec(a))||u[i]&&!(r=u[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):N(e,s).slice(0)},d=se.compile=function(e,t){var n,r=[],o=[],i=A[e+\" \"];if(!i){for(n=(t=t||h(e)).length;n--;)((i=function e(t){for(var r,n,o,i=t.length,a=w.relative[t[0].type],s=a||w.relative[\" \"],u=a?1:0,c=be(function(e){return e===r},s,!0),l=be(function(e){return-1<I(r,e)},s,!0),f=[function(e,t,n){return n=!a&&(n||t!==x)||((r=t).nodeType?c:l)(e,t,n),r=null,n}];u<i;u++)if(n=w.relative[t[u].type])f=[be(ye(f),n)];else{if((n=w.filter[t[u].type].apply(null,t[u].matches))[E]){for(o=++u;o<i&&!w.relative[t[o].type];o++);return xe(1<u&&ye(f),1<u&&me(t.slice(0,u-1).concat({value:\" \"===t[u-2].type?\"*\":\"\"})).replace(V,\"$1\"),n,u<o&&e(t.slice(u,o)),o<i&&e(t=t.slice(o)),o<i&&me(t))}f.push(n)}return ye(f)}(t[n]))[E]?r:o).push(i);(i=A(e,Te(o,r))).selector=e}return i},g=se.select=function(e,t,n,r){var o,i,a,s,u,c=\"function\"==typeof e&&e,l=!r&&h(e=c.selector||e);if(n=n||[],1===l.length){if(2<(i=l[0]=l[0].slice(0)).length&&\"ID\"===(a=i[0]).type&&9===t.nodeType&&k&&w.relative[i[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(re,f),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=Y.needsContext.test(e)?0:i.length;o--&&(a=i[o],!w.relative[s=a.type]);)if((u=w.find[s])&&(r=u(a.matches[0].replace(re,f),ne.test(i[0].type)&&ge(t.parentNode)||t))){if(i.splice(o,1),!(e=r.length&&me(i)))return L.apply(n,r),n;break}}return(c||d(e,l))(r,t,!k,n,!t||ne.test(e)&&ge(t.parentNode)||t),n},p.sortStable=E.split(\"\").sort(O).join(\"\")===E,p.detectDuplicates=!!c,T(),p.sortDetached=le(function(e){return 1&e.compareDocumentPosition(C.createElement(\"fieldset\"))}),le(function(e){return e.innerHTML=\"<a href='#'></a>\",\"#\"===e.firstChild.getAttribute(\"href\")})||fe(\"type|href|height|width\",function(e,t,n){if(!n)return e.getAttribute(t,\"type\"===t.toLowerCase()?1:2)}),p.attributes&&le(function(e){return e.innerHTML=\"<input/>\",e.firstChild.setAttribute(\"value\",\"\"),\"\"===e.firstChild.getAttribute(\"value\")})||fe(\"value\",function(e,t,n){if(!n&&\"input\"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute(\"disabled\")})||fe(R,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(t=e.getAttributeNode(t))&&t.specified?t.value:null}),se}(T);k.find=d,k.expr=d.selectors,k.expr[\":\"]=k.expr.pseudos,k.uniqueSort=k.unique=d.uniqueSort,k.text=d.getText,k.isXMLDoc=d.isXML,k.contains=d.contains,k.escapeSelector=d.escape;function p(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&k(e).is(n))break;r.push(e)}return r}function x(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var E=k.expr.match.needsContext;function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var _=/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i;function N(e,n,r){return y(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):\"string\"!=typeof n?k.grep(e,function(e){return-1<o.call(n,e)!==r}):k.filter(n,e,r)}k.filter=function(e,t,n){var r=t[0];return n&&(e=\":not(\"+e+\")\"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,r=this.length,o=this;if(\"string\"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<r;t++)if(k.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,o[t],n);return 1<r?k.uniqueSort(n):n},filter:function(e){return this.pushStack(N(this,e||[],!1))},not:function(e){return this.pushStack(N(this,e||[],!0))},is:function(e){return!!N(this,\"string\"==typeof e&&E.test(e)?k(e):e||[],!1).length}});var A=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/;(k.fn.init=function(e,t,n){if(!e)return this;if(n=n||D,\"string\"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this);if(!(r=\"<\"===e[0]&&\">\"===e[e.length-1]&&3<=e.length?[null,e,null]:A.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),_.test(r[1])&&k.isPlainObject(t))for(var r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(e=C.getElementById(r[2]))&&(this[0]=e,this.length=1),this}).prototype=k.fn;var D=k(C),O=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function q(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,i=[],a=\"string\"!=typeof e&&k(e);if(!E.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&k.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(1<i.length?k.uniqueSort(i):i)},index:function(e){return e?\"string\"==typeof e?o.call(k(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t;return(t=e.parentNode)&&11!==t.nodeType?t:null},parents:function(e){return p(e,\"parentNode\")},parentsUntil:function(e,t,n){return p(e,\"parentNode\",n)},next:function(e){return q(e,\"nextSibling\")},prev:function(e){return q(e,\"previousSibling\")},nextAll:function(e){return p(e,\"nextSibling\")},prevAll:function(e){return p(e,\"previousSibling\")},nextUntil:function(e,t,n){return p(e,\"nextSibling\",n)},prevUntil:function(e,t,n){return p(e,\"previousSibling\",n)},siblings:function(e){return x((e.parentNode||{}).firstChild,e)},children:function(e){return x(e.firstChild)},contents:function(e){return null!=e.contentDocument&&n(e.contentDocument)?e.contentDocument:(S(e,\"template\")&&(e=e.content||e),k.merge([],e.childNodes))}},function(r,o){k.fn[r]=function(e,t){var n=k.map(this,o,e);return(t=\"Until\"!==r.slice(-5)?e:t)&&\"string\"==typeof t&&(n=k.filter(t,n)),1<this.length&&(j[r]||k.uniqueSort(n),O.test(r)&&n.reverse()),this.pushStack(n)}});var M=/[^\\x20\\t\\r\\n\\f]+/g;function L(e){return e}function P(e){throw e}function I(e,t,n,r){var o;try{e&&y(o=e.promise)?o.call(e).done(t).fail(n):e&&y(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(r){var e,n;r=\"string\"==typeof r?(e=r,n={},k.each(e.match(M)||[],function(e,t){n[t]=!0}),n):k.extend({},r);function o(){for(s=s||r.once,a=i=!0;c.length;l=-1)for(t=c.shift();++l<u.length;)!1===u[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=u.length,t=!1);r.memory||(t=!1),i=!1,s&&(u=t?[]:\"\")}var i,t,a,s,u=[],c=[],l=-1,f={add:function(){return u&&(t&&!i&&(l=u.length-1,c.push(t)),function n(e){k.each(e,function(e,t){y(t)?r.unique&&f.has(t)||u.push(t):t&&t.length&&\"string\"!==h(t)&&n(t)})}(arguments),t&&!i&&o()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;-1<(n=k.inArray(t,u,n));)u.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<k.inArray(e,u):0<u.length},empty:function(){return u=u&&[],this},disable:function(){return s=c=[],u=t=\"\",this},disabled:function(){return!u},lock:function(){return s=c=[],t||i||(u=t=\"\"),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),i||o()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!a}};return f},k.extend({Deferred:function(e){var i=[[\"notify\",\"progress\",k.Callbacks(\"memory\"),k.Callbacks(\"memory\"),2],[\"resolve\",\"done\",k.Callbacks(\"once memory\"),k.Callbacks(\"once memory\"),0,\"resolved\"],[\"reject\",\"fail\",k.Callbacks(\"once memory\"),k.Callbacks(\"once memory\"),1,\"rejected\"]],o=\"pending\",a={state:function(){return o},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var o=arguments;return k.Deferred(function(r){k.each(i,function(e,t){var n=y(o[t[4]])&&o[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&y(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+\"With\"](this,n?[e]:arguments)})}),o=null}).promise()},then:function(t,n,r){var u=0;function c(o,i,a,s){return function(){function e(){var e,t;if(!(o<u)){if((e=a.apply(n,r))===i.promise())throw new TypeError(\"Thenable self-resolution\");t=e&&(\"object\"===_typeof(e)||\"function\"==typeof e)&&e.then,y(t)?s?t.call(e,c(u,i,L,s),c(u,i,P,s)):(u++,t.call(e,c(u,i,L,s),c(u,i,P,s),c(u,i,L,i.notifyWith))):(a!==L&&(n=void 0,r=[e]),(s||i.resolveWith)(n,r))}}var n=this,r=arguments,t=s?e:function(){try{e()}catch(e){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(e,t.stackTrace),u<=o+1&&(a!==P&&(n=void 0,r=[e]),i.rejectWith(n,r))}};o?t():(k.Deferred.getStackHook&&(t.stackTrace=k.Deferred.getStackHook()),T.setTimeout(t))}}return k.Deferred(function(e){i[0][3].add(c(0,e,y(r)?r:L,e.notifyWith)),i[1][3].add(c(0,e,y(t)?t:L)),i[2][3].add(c(0,e,y(n)?n:P))}).promise()},promise:function(e){return null!=e?k.extend(e,a):a}},s={};return k.each(i,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){o=r},i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+\"With\"](this===s?void 0:this,arguments),this},s[t[0]+\"With\"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){o[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||a.resolveWith(o,i)}}var n=arguments.length,r=n,o=Array(r),i=s.call(arguments),a=k.Deferred();if(n<=1&&(I(e,a.done(t(r)).resolve,a.reject,!n),\"pending\"===a.state()||y(i[r]&&i[r].then)))return a.then();for(;r--;)I(i[r],t(r),a.reject);return a.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){T.console&&T.console.warn&&e&&R.test(e.name)&&T.console.warn(\"jQuery.Deferred exception: \"+e.message,e.stack,t)},k.readyException=function(e){T.setTimeout(function(){throw e})};var H=k.Deferred();function B(){C.removeEventListener(\"DOMContentLoaded\",B),T.removeEventListener(\"load\",B),k.ready()}k.fn.ready=function(e){return H.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0)!==e&&0<--k.readyWait||H.resolveWith(C,[k])}}),k.ready.then=H.then,\"complete\"===C.readyState||\"loading\"!==C.readyState&&!C.documentElement.doScroll?T.setTimeout(k.ready):(C.addEventListener(\"DOMContentLoaded\",B),T.addEventListener(\"load\",B));function F(e,t,n,r,o,i,a){var s=0,u=e.length,c=null==n;if(\"object\"===h(n))for(s in o=!0,n)F(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,y(r)||(a=!0),t=c?a?(t.call(e,r),null):(c=t,function(e,t,n){return c.call(k(e),n)}):t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):u?t(e[0],n):i}var $=/^-ms-/,W=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function U(e){return e.replace($,\"ms-\").replace(W,V)}function J(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function z(){this.expando=k.expando+z.uid++}z.uid=1,z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if(\"string\"==typeof t)o[U(t)]=n;else for(r in t)o[U(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(t)]},access:function(e,t,n){return void 0===t||t&&\"string\"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(U):(t=U(t))in r?[t]:t.match(M)||[]).length;for(;n--;)delete r[t[n]]}void 0!==t&&!k.isEmptyObject(r)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!k.isEmptyObject(e)}};var G=new z,X=new z,Y=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,K=/[A-Z]/g;function Q(e,t,n){var r,o;if(void 0===n&&1===e.nodeType)if(r=\"data-\"+t.replace(K,\"-$&\").toLowerCase(),\"string\"==typeof(n=e.getAttribute(r))){try{n=\"true\"===(o=n)||\"false\"!==o&&(\"null\"===o?null:o===+o+\"\"?+o:Y.test(o)?JSON.parse(o):o)}catch(e){}X.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return X.hasData(e)||G.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return G.access(e,t,n)},_removeData:function(e,t){G.remove(e,t)}}),k.fn.extend({data:function(n,e){var t,r,o,i=this[0],a=i&&i.attributes;if(void 0!==n)return\"object\"===_typeof(n)?this.each(function(){X.set(this,n)}):F(this,function(e){var t;return i&&void 0===e?void 0!==(t=X.get(i,n))||void 0!==(t=Q(i,n))?t:void 0:void this.each(function(){X.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(o=X.get(i),1===i.nodeType&&!G.get(i,\"hasDataAttrs\"))){for(t=a.length;t--;)a[t]&&0===(r=a[t].name).indexOf(\"data-\")&&(r=U(r.slice(5)),Q(i,r,o[r]));G.set(i,\"hasDataAttrs\",!0)}return o},removeData:function(e){return this.each(function(){X.remove(this,e)})}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||\"fx\")+\"queue\",r=G.get(e,t),n&&(!r||Array.isArray(n)?r=G.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||\"fx\";var n=k.queue(e,t),r=n.length,o=n.shift(),i=k._queueHooks(e,t);\"inprogress\"===o&&(o=n.shift(),r--),o&&(\"fx\"===t&&n.unshift(\"inprogress\"),delete i.stop,o.call(e,function(){k.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+\"queueHooks\";return G.get(e,n)||G.access(e,n,{empty:k.Callbacks(\"once memory\").add(function(){G.remove(e,[t+\"queue\",n])})})}}),k.fn.extend({queue:function(t,n){var e=2;return\"string\"!=typeof t&&(n=t,t=\"fx\",e--),arguments.length<e?k.queue(this[0],t):void 0===n?this:this.each(function(){var e=k.queue(this,t,n);k._queueHooks(this,t),\"fx\"===t&&\"inprogress\"!==e[0]&&k.dequeue(this,t)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||\"fx\",[])},promise:function(e,t){function n(){--o||i.resolveWith(a,[a])}var r,o=1,i=k.Deferred(),a=this,s=this.length;for(\"string\"!=typeof e&&(t=e,e=void 0),e=e||\"fx\";s--;)(r=G.get(a[s],e+\"queueHooks\"))&&r.empty&&(o++,r.empty.add(n));return n(),i.promise(t)}});var Z=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,ee=new RegExp(\"^(?:([+-])=|)(\"+Z+\")([a-z%]*)$\",\"i\"),te=[\"Top\",\"Right\",\"Bottom\",\"Left\"],ne=C.documentElement,re=function(e){return k.contains(e.ownerDocument,e)},oe={composed:!0};ne.getRootNode&&(re=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ie=function(e,t){return\"none\"===(e=t||e).style.display||\"\"===e.style.display&&re(e)&&\"none\"===k.css(e,\"display\")};function ae(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return k.css(e,t,\"\")},u=s(),c=n&&n[3]||(k.cssNumber[t]?\"\":\"px\"),l=e.nodeType&&(k.cssNumber[t]||\"px\"!==c&&+u)&&ee.exec(k.css(e,t));if(l&&l[3]!==c){for(u/=2,c=c||l[3],l=+u||1;a--;)k.style(e,t,l+c),(1-i)*(1-(i=s()/u||.5))<=0&&(a=0),l/=i;l*=2,k.style(e,t,l+c),n=n||[]}return n&&(l=+l||+u||0,o=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=o)),o}var se={};function ue(e,t){for(var n,r,o,i,a,s=[],u=0,c=e.length;u<c;u++)(r=e[u]).style&&(n=r.style.display,t?(\"none\"===n&&(s[u]=G.get(r,\"display\")||null,s[u]||(r.style.display=\"\")),\"\"===r.style.display&&ie(r)&&(s[u]=(a=i=void 0,i=(o=r).ownerDocument,a=o.nodeName,(o=se[a])||(i=i.body.appendChild(i.createElement(a)),o=k.css(i,\"display\"),i.parentNode.removeChild(i),\"none\"===o&&(o=\"block\"),se[a]=o)))):\"none\"!==n&&(s[u]=\"none\",G.set(r,\"display\",n)));for(u=0;u<c;u++)null!=s[u]&&(e[u].style.display=s[u]);return e}k.fn.extend({show:function(){return ue(this,!0)},hide:function(){return ue(this)},toggle:function(e){return\"boolean\"==typeof e?e?this.show():this.hide():this.each(function(){ie(this)?k(this).show():k(this).hide()})}});var ce=/^(?:checkbox|radio)$/i,le=/<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)/i,fe=/^$|^module$|\\/(?:java|ecma)script/i;zt=C.createDocumentFragment().appendChild(C.createElement(\"div\")),(d=C.createElement(\"input\")).setAttribute(\"type\",\"radio\"),d.setAttribute(\"checked\",\"checked\"),d.setAttribute(\"name\",\"t\"),zt.appendChild(d),b.checkClone=zt.cloneNode(!0).cloneNode(!0).lastChild.checked,zt.innerHTML=\"<textarea>x</textarea>\",b.noCloneChecked=!!zt.cloneNode(!0).lastChild.defaultValue,zt.innerHTML=\"<option></option>\",b.option=!!zt.lastChild;var de={thead:[1,\"<table>\",\"</table>\"],col:[2,\"<table><colgroup>\",\"</colgroup></table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],_default:[0,\"\",\"\"]};function pe(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||\"*\"):void 0!==e.querySelectorAll?e.querySelectorAll(t||\"*\"):[];return void 0===t||t&&S(e,t)?k.merge([e],n):n}function he(e,t){for(var n=0,r=e.length;n<r;n++)G.set(e[n],\"globalEval\",!t||G.get(t[n],\"globalEval\"))}de.tbody=de.tfoot=de.colgroup=de.caption=de.thead,de.th=de.td,b.option||(de.optgroup=de.option=[1,\"<select multiple='multiple'>\",\"</select>\"]);var ge=/<|&#?\\w+;/;function ve(e,t,n,r,o){for(var i,a,s,u,c,l=t.createDocumentFragment(),f=[],d=0,p=e.length;d<p;d++)if((i=e[d])||0===i)if(\"object\"===h(i))k.merge(f,i.nodeType?[i]:i);else if(ge.test(i)){for(a=a||l.appendChild(t.createElement(\"div\")),s=(le.exec(i)||[\"\",\"\"])[1].toLowerCase(),s=de[s]||de._default,a.innerHTML=s[1]+k.htmlPrefilter(i)+s[2],c=s[0];c--;)a=a.lastChild;k.merge(f,a.childNodes),(a=l.firstChild).textContent=\"\"}else f.push(t.createTextNode(i));for(l.textContent=\"\",d=0;i=f[d++];)if(r&&-1<k.inArray(i,r))o&&o.push(i);else if(u=re(i),a=pe(l.appendChild(i),\"script\"),u&&he(a),n)for(c=0;i=a[c++];)fe.test(i.type||\"\")&&n.push(i);return l}var me=/^([^.]*)(?:\\.(.+)|)/;function be(){return!0}function ye(){return!1}function we(e,t){return e===function(){try{return C.activeElement}catch(e){}}()==(\"focus\"===t)}function xe(e,t,n,r,o,i){var a,s;if(\"object\"===_typeof(t)){for(s in\"string\"!=typeof n&&(r=r||n,n=void 0),t)xe(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&(\"string\"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=ye;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,o,r,n)})}function Te(e,o,i){i?(G.set(e,o,!1),k.event.add(e,o,{namespace:!1,handler:function(e){var t,n,r=G.get(this,o);if(1&e.isTrigger&&this[o]){if(r.length)(k.event.special[o]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),G.set(this,o,r),t=i(this,o),this[o](),r!==(n=G.get(this,o))||t?G.set(this,o,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(G.set(this,o,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,o)&&k.event.add(e,o,be)}k.event={global:{},add:function(t,e,n,r,o){var i,a,s,u,c,l,f,d,p,h=G.get(t);if(J(t))for(n.handler&&(n=(i=n).handler,o=i.selector),o&&k.find.matchesSelector(ne,o),n.guid||(n.guid=k.guid++),(s=h.events)||(s=h.events=Object.create(null)),(a=h.handle)||(a=h.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||\"\").match(M)||[\"\"]).length;u--;)f=p=(c=me.exec(e[u])||[])[1],d=(c[2]||\"\").split(\".\").sort(),f&&(l=k.event.special[f]||{},f=(o?l.delegateType:l.bindType)||f,l=k.event.special[f]||{},c=k.extend({type:f,origType:p,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:d.join(\".\")},i),(p=s[f])||((p=s[f]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,r,d,a)||t.addEventListener&&t.addEventListener(f,a)),l.add&&(l.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[f]=!0)},remove:function(e,t,n,r,o){var i,a,s,u,c,l,f,d,p,h,g,v=G.hasData(e)&&G.get(e);if(v&&(u=v.events)){for(c=(t=(t||\"\").match(M)||[\"\"]).length;c--;)if(p=g=(s=me.exec(t[c])||[])[1],h=(s[2]||\"\").split(\".\").sort(),p){for(f=k.event.special[p]||{},d=u[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp(\"(^|\\\\.)\"+h.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),a=i=d.length;i--;)l=d[i],!o&&g!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&(\"**\"!==r||!l.selector)||(d.splice(i,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)k.event.remove(e,p+t[c],n,r,!0);k.isEmptyObject(u)&&G.remove(e,\"handle events\")}},dispatch:function(e){var t,n,r,o,i,a=new Array(arguments.length),s=k.event.fix(e),u=(G.get(this,\"events\")||Object.create(null))[s.type]||[],e=k.event.special[s.type]||{};for(a[0]=s,t=1;t<arguments.length;t++)a[t]=arguments[t];if(s.delegateTarget=this,!e.preDispatch||!1!==e.preDispatch.call(this,s)){for(i=k.event.handlers.call(this,s,u),t=0;(r=i[t++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(o=((k.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(s.result=o)&&(s.preventDefault(),s.stopPropagation()));return e.postDispatch&&e.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,o,i,a,s=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!(\"click\"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&(\"click\"!==e.type||!0!==c.disabled)){for(i=[],a={},n=0;n<u;n++)void 0===a[o=(r=t[n]).selector+\" \"]&&(a[o]=r.needsContext?-1<k(o,this).index(c):k.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,u<t.length&&s.push({elem:c,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return ce.test(e.type)&&e.click&&S(e,\"input\")&&Te(e,\"click\",be),!1},trigger:function(e){e=this||e;return ce.test(e.type)&&e.click&&S(e,\"input\")&&Te(e,\"click\"),!0},_default:function(e){e=e.target;return ce.test(e.type)&&e.click&&S(e,\"input\")&&G.get(e,\"click\")||S(e,\"a\")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?be:ye,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:ye,isPropagationStopped:ye,isImmediatePropagationStopped:ye,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=be,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=be,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=be,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:\"focusin\",blur:\"focusout\"},function(e,t){k.event.special[e]={setup:function(){return Te(this,e,we),!1},trigger:function(){return Te(this,e),!0},_default:function(){return!0},delegateType:t}}),k.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\",pointerenter:\"pointerover\",pointerleave:\"pointerout\"},function(e,o){k.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=o),t}}}),k.fn.extend({on:function(e,t,n,r){return xe(this,e,t,n,r)},one:function(e,t,n,r){return xe(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+\".\"+r.namespace:r.origType,r.selector,r.handler),this;if(\"object\"!==_typeof(e))return!1!==t&&\"function\"!=typeof t||(n=t,t=void 0),!1===n&&(n=ye),this.each(function(){k.event.remove(this,e,n,t)});for(o in e)this.off(o,t,e[o]);return this}});var Ce=/<script|<style|<link/i,ke=/checked\\s*(?:[^=]|=\\s*.checked.)/i,Ee=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g;function Se(e,t){return S(e,\"table\")&&S(11!==t.nodeType?t:t.firstChild,\"tr\")&&k(e).children(\"tbody\")[0]||e}function _e(e){return e.type=(null!==e.getAttribute(\"type\"))+\"/\"+e.type,e}function Ne(e){return\"true/\"===(e.type||\"\").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute(\"type\"),e}function Ae(e,t){var n,r,o,i;if(1===t.nodeType){if(G.hasData(e)&&(i=G.get(e).events))for(o in G.remove(t,\"handle events\"),i)for(n=0,r=i[o].length;n<r;n++)k.event.add(t,o,i[o][n]);X.hasData(e)&&(e=X.access(e),e=k.extend({},e),X.set(t,e))}}function De(n,r,o,i){r=v(r);var e,t,a,s,u,c,l=0,f=n.length,d=f-1,p=r[0],h=y(p);if(h||1<f&&\"string\"==typeof p&&!b.checkClone&&ke.test(p))return n.each(function(e){var t=n.eq(e);h&&(r[0]=p.call(this,e,t.html())),De(t,r,o,i)});if(f&&(t=(e=ve(r,n[0].ownerDocument,!1,n,i)).firstChild,1===e.childNodes.length&&(e=t),t||i)){for(s=(a=k.map(pe(e,\"script\"),_e)).length;l<f;l++)u=e,l!==d&&(u=k.clone(u,!0,!0),s&&k.merge(a,pe(u,\"script\"))),o.call(n[l],u,l);if(s)for(c=a[a.length-1].ownerDocument,k.map(a,Ne),l=0;l<s;l++)u=a[l],fe.test(u.type||\"\")&&!G.access(u,\"globalEval\")&&k.contains(c,u)&&(u.src&&\"module\"!==(u.type||\"\").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute(\"nonce\")},c):w(u.textContent.replace(Ee,\"\"),u,c))}return n}function Oe(e,t,n){for(var r,o=t?k.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||k.cleanData(pe(r)),r.parentNode&&(n&&re(r)&&he(pe(r,\"script\")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,o,i,a,s,u,c,l=e.cloneNode(!0),f=re(e);if(!(b.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=pe(l),r=0,o=(i=pe(e)).length;r<o;r++)s=i[r],u=a[r],c=void 0,\"input\"===(c=u.nodeName.toLowerCase())&&ce.test(s.type)?u.checked=s.checked:\"input\"!==c&&\"textarea\"!==c||(u.defaultValue=s.defaultValue);if(t)if(n)for(i=i||pe(e),a=a||pe(l),r=0,o=i.length;r<o;r++)Ae(i[r],a[r]);else Ae(e,l);return 0<(a=pe(l,\"script\")).length&&he(a,!f&&pe(e,\"script\")),l},cleanData:function(e){for(var t,n,r,o=k.event.special,i=0;void 0!==(n=e[i]);i++)if(J(n)){if(t=n[G.expando]){if(t.events)for(r in t.events)o[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[G.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return F(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return De(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Se(this,e).appendChild(e)})},prepend:function(){return De(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Se(this,e)).insertBefore(e,t.firstChild)})},before:function(){return De(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return De(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(pe(e,!1)),e.textContent=\"\");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return F(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if(\"string\"==typeof e&&!Ce.test(e)&&!de[(le.exec(e)||[\"\",\"\"])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(pe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return De(this,arguments,function(e){var t=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(pe(this)),t&&t.replaceChild(e,this))},n)}}),k.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(e,a){k.fn[e]=function(e){for(var t,n=[],r=k(e),o=r.length-1,i=0;i<=o;i++)t=i===o?this:this.clone(!0),k(r[i])[a](t),u.apply(n,t.get());return this.pushStack(n)}});function je(e,t,n){var r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in n=n.call(e),t)e.style[r]=o[r];return n}var qe,Me,Le,Pe,Ie,Re,He,Be,Fe=new RegExp(\"^(\"+Z+\")(?!px)[a-z%]+$\",\"i\"),$e=function(e){var t=e.ownerDocument.defaultView;return(t=!t||!t.opener?T:t).getComputedStyle(e)},We=new RegExp(te.join(\"|\"),\"i\");function Ve(){var e;Be&&(He.style.cssText=\"position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0\",Be.style.cssText=\"position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%\",ne.appendChild(He).appendChild(Be),e=T.getComputedStyle(Be),qe=\"1%\"!==e.top,Re=12===Ue(e.marginLeft),Be.style.right=\"60%\",Pe=36===Ue(e.right),Me=36===Ue(e.width),Be.style.position=\"absolute\",Le=12===Ue(Be.offsetWidth/3),ne.removeChild(He),Be=null)}function Ue(e){return Math.round(parseFloat(e))}function Je(e,t,n){var r,o,i=e.style;return(n=n||$e(e))&&(\"\"!==(o=n.getPropertyValue(t)||n[t])||re(e)||(o=k.style(e,t)),!b.pixelBoxStyles()&&Fe.test(o)&&We.test(t)&&(r=i.width,e=i.minWidth,t=i.maxWidth,i.minWidth=i.maxWidth=i.width=o,o=n.width,i.width=r,i.minWidth=e,i.maxWidth=t)),void 0!==o?o+\"\":o}function ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}He=C.createElement(\"div\"),(Be=C.createElement(\"div\")).style&&(Be.style.backgroundClip=\"content-box\",Be.cloneNode(!0).style.backgroundClip=\"\",b.clearCloneStyle=\"content-box\"===Be.style.backgroundClip,k.extend(b,{boxSizingReliable:function(){return Ve(),Me},pixelBoxStyles:function(){return Ve(),Pe},pixelPosition:function(){return Ve(),qe},reliableMarginLeft:function(){return Ve(),Re},scrollboxSize:function(){return Ve(),Le},reliableTrDimensions:function(){var e,t,n;return null==Ie&&(e=C.createElement(\"table\"),t=C.createElement(\"tr\"),n=C.createElement(\"div\"),e.style.cssText=\"position:absolute;left:-11111px;border-collapse:separate\",t.style.cssText=\"border:1px solid\",t.style.height=\"1px\",n.style.height=\"9px\",n.style.display=\"block\",ne.appendChild(e).appendChild(t).appendChild(n),n=T.getComputedStyle(t),Ie=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===t.offsetHeight,ne.removeChild(e)),Ie}}));var Ge=[\"Webkit\",\"Moz\",\"ms\"],Xe=C.createElement(\"div\").style,Ye={};function Ke(e){var t=k.cssProps[e]||Ye[e];return t||(e in Xe?e:Ye[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Xe)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Ze=/^--/,et={position:\"absolute\",visibility:\"hidden\",display:\"block\"},tt={letterSpacing:\"0\",fontWeight:\"400\"};function nt(e,t,n){var r=ee.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||\"px\"):t}function rt(e,t,n,r,o,i){var a=\"width\"===t?1:0,s=0,u=0;if(n===(r?\"border\":\"content\"))return 0;for(;a<4;a+=2)\"margin\"===n&&(u+=k.css(e,n+te[a],!0,o)),r?(\"content\"===n&&(u-=k.css(e,\"padding\"+te[a],!0,o)),\"margin\"!==n&&(u-=k.css(e,\"border\"+te[a]+\"Width\",!0,o))):(u+=k.css(e,\"padding\"+te[a],!0,o),\"padding\"!==n?u+=k.css(e,\"border\"+te[a]+\"Width\",!0,o):s+=k.css(e,\"border\"+te[a]+\"Width\",!0,o));return!r&&0<=i&&(u+=Math.max(0,Math.ceil(e[\"offset\"+t[0].toUpperCase()+t.slice(1)]-i-u-s-.5))||0),u}function ot(e,t,n){var r=$e(e),o=(!b.boxSizingReliable()||n)&&\"border-box\"===k.css(e,\"boxSizing\",!1,r),i=o,a=Je(e,t,r),s=\"offset\"+t[0].toUpperCase()+t.slice(1);if(Fe.test(a)){if(!n)return a;a=\"auto\"}return(!b.boxSizingReliable()&&o||!b.reliableTrDimensions()&&S(e,\"tr\")||\"auto\"===a||!parseFloat(a)&&\"inline\"===k.css(e,\"display\",!1,r))&&e.getClientRects().length&&(o=\"border-box\"===k.css(e,\"boxSizing\",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+rt(e,t,n||(o?\"border\":\"content\"),i,r,a)+\"px\"}function it(e,t,n,r,o){return new it.prototype.init(e,t,n,r,o)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){e=Je(e,\"opacity\");return\"\"===e?\"1\":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=U(t),u=Ze.test(t),c=e.style;if(u||(t=Ke(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&\"get\"in a&&void 0!==(o=a.get(e,!1,r))?o:c[t];\"string\"===(i=_typeof(n))&&(o=ee.exec(n))&&o[1]&&(n=ae(e,t,o),i=\"number\"),null!=n&&n==n&&(\"number\"!==i||u||(n+=o&&o[3]||(k.cssNumber[s]?\"\":\"px\")),b.clearCloneStyle||\"\"!==n||0!==t.indexOf(\"background\")||(c[t]=\"inherit\"),a&&\"set\"in a&&void 0===(n=a.set(e,n,r))||(u?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var o,i=U(t);return Ze.test(t)||(t=Ke(i)),\"normal\"===(o=void 0===(o=(i=k.cssHooks[t]||k.cssHooks[i])&&\"get\"in i?i.get(e,!0,n):o)?Je(e,t,r):o)&&t in tt&&(o=tt[t]),\"\"===n||n?(t=parseFloat(o),!0===n||isFinite(t)?t||0:o):o}}),k.each([\"height\",\"width\"],function(e,s){k.cssHooks[s]={get:function(e,t,n){if(t)return!Qe.test(k.css(e,\"display\"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,s,n):je(e,et,function(){return ot(e,s,n)})},set:function(e,t,n){var r,o=$e(e),i=!b.scrollboxSize()&&\"absolute\"===o.position,a=(i||n)&&\"border-box\"===k.css(e,\"boxSizing\",!1,o),n=n?rt(e,s,n,a,o):0;return a&&i&&(n-=Math.ceil(e[\"offset\"+s[0].toUpperCase()+s.slice(1)]-parseFloat(o[s])-rt(e,s,\"border\",!1,o)-.5)),n&&(r=ee.exec(t))&&\"px\"!==(r[3]||\"px\")&&(e.style[s]=t,t=k.css(e,s)),nt(0,t,n)}}}),k.cssHooks.marginLeft=ze(b.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Je(e,\"marginLeft\"))||e.getBoundingClientRect().left-je(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+\"px\"}),k.each({margin:\"\",padding:\"\",border:\"Width\"},function(o,i){k.cssHooks[o+i]={expand:function(e){for(var t=0,n={},r=\"string\"==typeof e?e.split(\" \"):[e];t<4;t++)n[o+te[t]+i]=r[t]||r[t-2]||r[0];return n}},\"margin\"!==o&&(k.cssHooks[o+i].set=nt)}),k.fn.extend({css:function(e,t){return F(this,function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=$e(e),o=t.length;a<o;a++)i[t[a]]=k.css(e,t[a],!1,r);return i}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,1<arguments.length)}}),(k.Tween=it).prototype={constructor:it,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(k.cssNumber[n]?\"\":\"px\")},cur:function(){var e=it.propHooks[this.prop];return(e&&e.get?e:it.propHooks._default).get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:it.propHooks._default).set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=k.css(e.elem,e.prop,\"\"))&&\"auto\"!==e?e:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Ke(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:\"swing\"},k.fx=it.prototype.init,k.fx.step={};var at,st,ut=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function lt(){st&&(!1===C.hidden&&T.requestAnimationFrame?T.requestAnimationFrame(lt):T.setTimeout(lt,k.fx.interval),k.fx.tick())}function ft(){return T.setTimeout(function(){at=void 0}),at=Date.now()}function dt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o[\"margin\"+(n=te[r])]=o[\"padding\"+n]=e;return t&&(o.opacity=o.width=e),o}function pt(e,t,n){for(var r,o=(ht.tweeners[t]||[]).concat(ht.tweeners[\"*\"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function ht(o,e,t){var n,i,r=0,a=ht.prefilters.length,s=k.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=at||ft(),e=Math.max(0,c.startTime+c.duration-e),t=1-(e/c.duration||0),n=0,r=c.tweens.length;n<r;n++)c.tweens[n].run(t);return s.notifyWith(o,[c,t,e]),t<1&&r?e:(r||s.notifyWith(o,[c,1,0]),s.resolveWith(o,[c]),!1)},c=s.promise({elem:o,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},t),originalProperties:e,originalOptions:t,startTime:at||ft(),duration:t.duration,tweens:[],createTween:function(e,t){e=k.Tween(o,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(e),e},stop:function(e){var t=0,n=e?c.tweens.length:0;if(i)return this;for(i=!0;t<n;t++)c.tweens[t].run(1);return e?(s.notifyWith(o,[c,1,0]),s.resolveWith(o,[c,e])):s.rejectWith(o,[c,e]),this}}),l=c.props;for(!function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=U(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=k.cssHooks[r])&&\"expand\"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(l,c.opts.specialEasing);r<a;r++)if(n=ht.prefilters[r].call(c,o,l,c.opts))return y(n.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return k.map(l,pt,c),y(c.opts.start)&&c.opts.start.call(o,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(u,{elem:o,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(ht,{tweeners:{\"*\":[function(e,t){var n=this.createTween(e,t);return ae(n.elem,e,ee.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,o=(e=y(e)?(t=e,[\"*\"]):e.match(M)).length;r<o;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,u,c,l=\"width\"in t||\"height\"in t,f=this,d={},p=e.style,h=e.nodeType&&ie(e),g=G.get(e,\"fxshow\");for(r in n.queue||(null==(a=k._queueHooks(e,\"fx\")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,k.queue(e,\"fx\").length||a.empty.fire()})})),t)if(o=t[r],ut.test(o)){if(delete t[r],i=i||\"toggle\"===o,o===(h?\"hide\":\"show\")){if(\"show\"!==o||!g||void 0===g[r])continue;h=!0}d[r]=g&&g[r]||k.style(e,r)}if((u=!k.isEmptyObject(t))||!k.isEmptyObject(d))for(r in l&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=G.get(e,\"display\")),\"none\"===(l=k.css(e,\"display\"))&&(c?l=c:(ue([e],!0),c=e.style.display||c,l=k.css(e,\"display\"),ue([e]))),(\"inline\"===l||\"inline-block\"===l&&null!=c)&&\"none\"===k.css(e,\"float\")&&(u||(f.done(function(){p.display=c}),null==c&&(l=p.display,c=\"none\"===l?\"\":l)),p.display=\"inline-block\")),n.overflow&&(p.overflow=\"hidden\",f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),u=!1,d)u||(g?\"hidden\"in g&&(h=g.hidden):g=G.access(e,\"fxshow\",{display:c}),i&&(g.hidden=!h),h&&ue([e],!0),f.done(function(){for(r in h||ue([e]),G.remove(e,\"fxshow\"),d)k.style(e,r,d[r])})),u=pt(h?g[r]:0,r,f),r in g||(g[r]=u.start,h&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&\"object\"===_typeof(e)?k.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return k.fx.off?r.duration=0:\"number\"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue=\"fx\"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ie).css(\"opacity\",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var o=k.isEmptyObject(t),i=k.speed(e,n,r),r=function(){var e=ht(this,k.extend({},t),i);(o||G.get(this,\"finish\"))&&e.stop(!0)};return r.finish=r,o||!1===i.queue?this.each(r):this.queue(i.queue,r)},stop:function(o,e,i){function a(e){var t=e.stop;delete e.stop,t(i)}return\"string\"!=typeof o&&(i=e,e=o,o=void 0),e&&this.queue(o||\"fx\",[]),this.each(function(){var e=!0,t=null!=o&&o+\"queueHooks\",n=k.timers,r=G.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&ct.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=o&&n[t].queue!==o||(n[t].anim.stop(i),e=!1,n.splice(t,1));!e&&i||k.dequeue(this,o)})},finish:function(a){return!1!==a&&(a=a||\"fx\"),this.each(function(){var e,t=G.get(this),n=t[a+\"queue\"],r=t[a+\"queueHooks\"],o=k.timers,i=n?n.length:0;for(t.finish=!0,k.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===a&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<i;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),k.each([\"toggle\",\"show\",\"hide\"],function(e,r){var o=k.fn[r];k.fn[r]=function(e,t,n){return null==e||\"boolean\"==typeof e?o.apply(this,arguments):this.animate(dt(r,!0),e,t,n)}}),k.each({slideDown:dt(\"show\"),slideUp:dt(\"hide\"),slideToggle:dt(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(e,r){k.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),at=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){st||(st=!0,lt())},k.fx.stop=function(){st=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(r,e){return r=k.fx&&k.fx.speeds[r]||r,e=e||\"fx\",this.queue(e,function(e,t){var n=T.setTimeout(e,r);t.stop=function(){T.clearTimeout(n)}})},zt=C.createElement(\"input\"),Z=C.createElement(\"select\").appendChild(C.createElement(\"option\")),zt.type=\"checkbox\",b.checkOn=\"\"!==zt.value,b.optSelected=Z.selected,(zt=C.createElement(\"input\")).value=\"t\",zt.type=\"radio\",b.radioValue=\"t\"===zt.value;var gt,vt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return F(this,k.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?k.prop(e,t,n):(1===i&&k.isXMLDoc(e)||(o=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):o&&\"set\"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+\"\"),n):!(o&&\"get\"in o&&null!==(r=o.get(e,t)))&&null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!b.radioValue&&\"radio\"===t&&S(e,\"input\")){var n=e.value;return e.setAttribute(\"type\",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(M);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\\w+/g),function(e,t){var a=vt[t]||k.find.attr;vt[t]=function(e,t,n){var r,o,i=t.toLowerCase();return n||(o=vt[i],vt[i]=r,r=null!=a(e,t,n)?i:null,vt[i]=o),r}});var mt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function yt(e){return(e.match(M)||[]).join(\" \")}function wt(e){return e.getAttribute&&e.getAttribute(\"class\")||\"\"}function xt(e){return Array.isArray(e)?e:\"string\"==typeof e&&e.match(M)||[]}k.fn.extend({prop:function(e,t){return F(this,k.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&k.isXMLDoc(e)||(t=k.propFix[t]||t,o=k.propHooks[t]),void 0!==n?o&&\"set\"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&\"get\"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,\"tabindex\");return t?parseInt(t,10):mt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:\"htmlFor\",class:\"className\"}}),b.optSelected||(k.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,n,r,o,i,a,s=0;if(y(t))return this.each(function(e){k(this).addClass(t.call(this,e,wt(this)))});if((e=xt(t)).length)for(;n=this[s++];)if(a=wt(n),r=1===n.nodeType&&\" \"+yt(a)+\" \"){for(i=0;o=e[i++];)r.indexOf(\" \"+o+\" \")<0&&(r+=o+\" \");a!==(a=yt(r))&&n.setAttribute(\"class\",a)}return this},removeClass:function(t){var e,n,r,o,i,a,s=0;if(y(t))return this.each(function(e){k(this).removeClass(t.call(this,e,wt(this)))});if(!arguments.length)return this.attr(\"class\",\"\");if((e=xt(t)).length)for(;n=this[s++];)if(a=wt(n),r=1===n.nodeType&&\" \"+yt(a)+\" \"){for(i=0;o=e[i++];)for(;-1<r.indexOf(\" \"+o+\" \");)r=r.replace(\" \"+o+\" \",\" \");a!==(a=yt(r))&&n.setAttribute(\"class\",a)}return this},toggleClass:function(o,t){var i=_typeof(o),a=\"string\"===i||Array.isArray(o);return\"boolean\"==typeof t&&a?t?this.addClass(o):this.removeClass(o):y(o)?this.each(function(e){k(this).toggleClass(o.call(this,e,wt(this),t),t)}):this.each(function(){var e,t,n,r;if(a)for(t=0,n=k(this),r=xt(o);e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==o&&\"boolean\"!==i||((e=wt(this))&&G.set(this,\"__className__\",e),this.setAttribute&&this.setAttribute(\"class\",!e&&!1!==o&&G.get(this,\"__className__\")||\"\"))})},hasClass:function(e){for(var t,n=0,r=\" \"+e+\" \";t=this[n++];)if(1===t.nodeType&&-1<(\" \"+yt(wt(t))+\" \").indexOf(r))return!0;return!1}});var Tt=/\\r/g;k.fn.extend({val:function(t){var n,e,r,o=this[0];return arguments.length?(r=y(t),this.each(function(e){1===this.nodeType&&(null==(e=r?t.call(this,e,k(this).val()):t)?e=\"\":\"number\"==typeof e?e+=\"\":Array.isArray(e)&&(e=k.map(e,function(e){return null==e?\"\":e+\"\"})),(n=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&\"set\"in n&&void 0!==n.set(this,e,\"value\")||(this.value=e))})):o?(n=k.valHooks[o.type]||k.valHooks[o.nodeName.toLowerCase()])&&\"get\"in n&&void 0!==(e=n.get(o,\"value\"))?e:\"string\"==typeof(e=o.value)?e.replace(Tt,\"\"):null==e?\"\":e:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,\"value\");return null!=t?t:yt(k.text(e))}},select:{get:function(e){for(var t,n=e.options,r=e.selectedIndex,o=\"select-one\"===e.type,i=o?null:[],a=o?r+1:n.length,s=r<0?a:o?r:0;s<a;s++)if(((t=n[s]).selected||s===r)&&!t.disabled&&(!t.parentNode.disabled||!S(t.parentNode,\"optgroup\"))){if(t=k(t).val(),o)return t;i.push(t)}return i},set:function(e,t){for(var n,r,o=e.options,i=k.makeArray(t),a=o.length;a--;)((r=o[a]).selected=-1<k.inArray(k.valHooks.option.get(r),i))&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),k.each([\"radio\",\"checkbox\"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<k.inArray(k(e).val(),t)}},b.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute(\"value\")?\"on\":e.value})}),b.focusin=\"onfocusin\"in T;function Ct(e){e.stopPropagation()}var kt=/^(?:focusinfocus|focusoutblur)$/;k.extend(k.event,{trigger:function(e,t,n,r){var o,i,a,s,u,c,l,f=[n||C],d=m.call(e,\"type\")?e.type:e,p=m.call(e,\"namespace\")?e.namespace.split(\".\"):[],h=l=i=n=n||C;if(3!==n.nodeType&&8!==n.nodeType&&!kt.test(d+k.event.triggered)&&(-1<d.indexOf(\".\")&&(d=(p=d.split(\".\")).shift(),p.sort()),s=d.indexOf(\":\")<0&&\"on\"+d,(e=e[k.expando]?e:new k.Event(d,\"object\"===_typeof(e)&&e)).isTrigger=r?2:3,e.namespace=p.join(\".\"),e.rnamespace=e.namespace?new RegExp(\"(^|\\\\.)\"+p.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),c=k.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!g(n)){for(a=c.delegateType||d,kt.test(a+d)||(h=h.parentNode);h;h=h.parentNode)f.push(h),i=h;i===(n.ownerDocument||C)&&f.push(i.defaultView||i.parentWindow||T)}for(o=0;(h=f[o++])&&!e.isPropagationStopped();)l=h,e.type=1<o?a:c.bindType||d,(u=(G.get(h,\"events\")||Object.create(null))[e.type]&&G.get(h,\"handle\"))&&u.apply(h,t),(u=s&&h[s])&&u.apply&&J(h)&&(e.result=u.apply(h,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(f.pop(),t)||!J(n)||s&&y(n[d])&&!g(n)&&((i=n[s])&&(n[s]=null),k.event.triggered=d,e.isPropagationStopped()&&l.addEventListener(d,Ct),n[d](),e.isPropagationStopped()&&l.removeEventListener(d,Ct),k.event.triggered=void 0,i&&(n[s]=i)),e.result}},simulate:function(e,t,n){e=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(e,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),b.focusin||k.each({focus:\"focusin\",blur:\"focusout\"},function(n,r){function o(e){k.event.simulate(r,e.target,k.event.fix(e))}k.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=G.access(e,r);t||e.addEventListener(n,o,!0),G.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=G.access(e,r)-1;t?G.access(e,r,t):(e.removeEventListener(n,o,!0),G.remove(e,r))}}});var Et=T.location,St={guid:Date.now()},_t=/\\?/;k.parseXML=function(e){var t,n;if(!e||\"string\"!=typeof e)return null;try{t=(new T.DOMParser).parseFromString(e,\"text/xml\")}catch(e){}return n=t&&t.getElementsByTagName(\"parsererror\")[0],t&&!n||k.error(\"Invalid XML: \"+(n?k.map(n.childNodes,function(e){return e.textContent}).join(\"\\n\"):e)),t};var Nt=/\\[\\]$/,At=/\\r?\\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;k.param=function(e,t){function n(e,t){t=y(t)?t():t,o[o.length]=encodeURIComponent(e)+\"=\"+encodeURIComponent(null==t?\"\":t)}var r,o=[];if(null==e)return\"\";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){n(this.name,this.value)});else for(r in e)!function n(r,e,o,i){if(Array.isArray(e))k.each(e,function(e,t){o||Nt.test(r)?i(r,t):n(r+\"[\"+(\"object\"===_typeof(t)&&null!=t?e:\"\")+\"]\",t,o,i)});else if(o||\"object\"!==h(e))i(r,e);else for(var t in e)n(r+\"[\"+t+\"]\",e[t],o,i)}(r,e[r],t,n);return o.join(\"&\")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,\"elements\");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(\":disabled\")&&Ot.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!ce.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(At,\"\\r\\n\")}}):{name:t.name,value:n.replace(At,\"\\r\\n\")}}).get()}});var jt=/%20/g,qt=/#.*$/,Mt=/([?&])_=[^&]*/,Lt=/^(.*?):[ \\t]*([^\\r\\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,It=/^\\/\\//,Rt={},Ht={},Bt=\"*/\".concat(\"*\"),Ft=C.createElement(\"a\");function $t(i){return function(e,t){\"string\"!=typeof e&&(t=e,e=\"*\");var n,r=0,o=e.toLowerCase().match(M)||[];if(y(t))for(;n=o[r++];)\"+\"===n[0]?(n=n.slice(1)||\"*\",(i[n]=i[n]||[]).unshift(t)):(i[n]=i[n]||[]).push(t)}}function Wt(t,r,o,i){var a={},s=t===Ht;function u(e){var n;return a[e]=!0,k.each(t[e]||[],function(e,t){t=t(r,o,i);return\"string\"!=typeof t||s||a[t]?s?!(n=t):void 0:(r.dataTypes.unshift(t),u(t),!1)}),n}return u(r.dataTypes[0])||!a[\"*\"]&&u(\"*\")}function Vt(e,t){var n,r,o=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r=r||{})[n]=t[n]);return r&&k.extend(!0,e,r),e}Ft.href=Et.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:\"GET\",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":Bt,text:\"text/plain\",html:\"text/html\",xml:\"application/xml, text/xml\",json:\"application/json, text/javascript\"},contents:{xml:/\\bxml\\b/,html:/\\bhtml/,json:/\\bjson\\b/},responseFields:{xml:\"responseXML\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":!0,\"text json\":JSON.parse,\"text xml\":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,k.ajaxSettings),t):Vt(k.ajaxSettings,e)},ajaxPrefilter:$t(Rt),ajaxTransport:$t(Ht),ajax:function(e,t){\"object\"===_typeof(e)&&(t=e,e=void 0),t=t||{};var u,c,l,n,f,r,d,p,o,h=k.ajaxSetup({},t),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?k(g):k.event,m=k.Deferred(),b=k.Callbacks(\"once memory\"),y=h.statusCode||{},i={},a={},s=\"canceled\",w={readyState:0,getResponseHeader:function(e){var t;if(d){if(!n)for(n={};t=Lt.exec(l);)n[t[1].toLowerCase()+\" \"]=(n[t[1].toLowerCase()+\" \"]||[]).concat(t[2]);t=n[e.toLowerCase()+\" \"]}return null==t?null:t.join(\", \")},getAllResponseHeaders:function(){return d?l:null},setRequestHeader:function(e,t){return null==d&&(e=a[e.toLowerCase()]=a[e.toLowerCase()]||e,i[e]=t),this},overrideMimeType:function(e){return null==d&&(h.mimeType=e),this},statusCode:function(e){if(e)if(d)w.always(e[w.status]);else for(var t in e)y[t]=[y[t],e[t]];return this},abort:function(e){e=e||s;return u&&u.abort(e),x(0,e),this}};if(m.promise(w),h.url=((e||h.url||Et.href)+\"\").replace(It,Et.protocol+\"//\"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||\"*\").toLowerCase().match(M)||[\"\"],null==h.crossDomain){r=C.createElement(\"a\");try{r.href=h.url,r.href=r.href,h.crossDomain=Ft.protocol+\"//\"+Ft.host!=r.protocol+\"//\"+r.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&\"string\"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),Wt(Rt,h,t,w),d)return w;for(o in(p=k.event&&h.global)&&0==k.active++&&k.event.trigger(\"ajaxStart\"),h.type=h.type.toUpperCase(),h.hasContent=!Pt.test(h.type),c=h.url.replace(qt,\"\"),h.hasContent?h.data&&h.processData&&0===(h.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&(h.data=h.data.replace(jt,\"+\")):(e=h.url.slice(c.length),h.data&&(h.processData||\"string\"==typeof h.data)&&(c+=(_t.test(c)?\"&\":\"?\")+h.data,delete h.data),!1===h.cache&&(c=c.replace(Mt,\"$1\"),e=(_t.test(c)?\"&\":\"?\")+\"_=\"+St.guid+++e),h.url=c+e),h.ifModified&&(k.lastModified[c]&&w.setRequestHeader(\"If-Modified-Since\",k.lastModified[c]),k.etag[c]&&w.setRequestHeader(\"If-None-Match\",k.etag[c])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&w.setRequestHeader(\"Content-Type\",h.contentType),w.setRequestHeader(\"Accept\",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+(\"*\"!==h.dataTypes[0]?\", \"+Bt+\"; q=0.01\":\"\"):h.accepts[\"*\"]),h.headers)w.setRequestHeader(o,h.headers[o]);if(h.beforeSend&&(!1===h.beforeSend.call(g,w,h)||d))return w.abort();if(s=\"abort\",b.add(h.complete),w.done(h.success),w.fail(h.error),u=Wt(Ht,h,t,w)){if(w.readyState=1,p&&v.trigger(\"ajaxSend\",[w,h]),d)return w;h.async&&0<h.timeout&&(f=T.setTimeout(function(){w.abort(\"timeout\")},h.timeout));try{d=!1,u.send(i,x)}catch(e){if(d)throw e;x(-1,e)}}else x(-1,\"No Transport\");function x(e,t,n,r){var o,i,a,s=t;d||(d=!0,f&&T.clearTimeout(f),u=void 0,l=r||\"\",w.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(a=function(e,t,n){for(var r,o,i,a,s=e.contents,u=e.dataTypes;\"*\"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader(\"Content-Type\"));if(r)for(o in s)if(s[o]&&s[o].test(r)){u.unshift(o);break}if(u[0]in n)i=u[0];else{for(o in n){if(!u[0]||e.converters[o+\" \"+u[0]]){i=o;break}a=a||o}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}(h,w,n)),!r&&-1<k.inArray(\"script\",h.dataTypes)&&k.inArray(\"json\",h.dataTypes)<0&&(h.converters[\"text script\"]=function(){}),a=function(e,t,n,r){var o,i,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=l.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=l.shift())if(\"*\"===i)i=u;else if(\"*\"!==u&&u!==i){if(!(a=c[u+\" \"+i]||c[\"* \"+i]))for(o in c)if(s=o.split(\" \"),s[1]===i&&(a=c[u+\" \"+s[0]]||c[\"* \"+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:\"parsererror\",error:a?e:\"No conversion from \"+u+\" to \"+i}}}return{state:\"success\",data:t}}(h,a,w,r),r?(h.ifModified&&((n=w.getResponseHeader(\"Last-Modified\"))&&(k.lastModified[c]=n),(n=w.getResponseHeader(\"etag\"))&&(k.etag[c]=n)),204===e||\"HEAD\"===h.type?s=\"nocontent\":304===e?s=\"notmodified\":(s=a.state,o=a.data,r=!(i=a.error))):(i=s,!e&&s||(s=\"error\",e<0&&(e=0))),w.status=e,w.statusText=(t||s)+\"\",r?m.resolveWith(g,[o,s,w]):m.rejectWith(g,[w,s,i]),w.statusCode(y),y=void 0,p&&v.trigger(r?\"ajaxSuccess\":\"ajaxError\",[w,h,r?o:i]),b.fireWith(g,[w,s]),p&&(v.trigger(\"ajaxComplete\",[w,h]),--k.active||k.event.trigger(\"ajaxStop\")))}return w},getJSON:function(e,t,n){return k.get(e,t,n,\"json\")},getScript:function(e,t){return k.get(e,void 0,t,\"script\")}}),k.each([\"get\",\"post\"],function(e,o){k[o]=function(e,t,n,r){return y(t)&&(r=r||n,n=t,t=void 0),k.ajax(k.extend({url:e,type:o,dataType:r,data:t,success:n},k.isPlainObject(e)&&e))}}),k.ajaxPrefilter(function(e){for(var t in e.headers)\"content-type\"===t.toLowerCase()&&(e.contentType=e.headers[t]||\"\")}),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:\"GET\",dataType:\"script\",cache:!0,async:!1,global:!1,converters:{\"text script\":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){return this[0]&&(y(e)&&(e=e.call(this[0])),e=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return y(n)?this.each(function(e){k(this).wrapInner(n.call(this,e))}):this.each(function(){var e=k(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=y(t);return this.each(function(e){k(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not(\"body\").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new T.XMLHttpRequest}catch(e){}};var Ut={0:200,1223:204},Jt=k.ajaxSettings.xhr();b.cors=!!Jt&&\"withCredentials\"in Jt,b.ajax=Jt=!!Jt,k.ajaxTransport(function(o){var i,a;if(b.cors||Jt&&!o.crossDomain)return{send:function(e,t){var n,r=o.xhr();if(r.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)r[n]=o.xhrFields[n];for(n in o.mimeType&&r.overrideMimeType&&r.overrideMimeType(o.mimeType),o.crossDomain||e[\"X-Requested-With\"]||(e[\"X-Requested-With\"]=\"XMLHttpRequest\"),e)r.setRequestHeader(n,e[n]);i=function(e){return function(){i&&(i=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,\"abort\"===e?r.abort():\"error\"===e?\"number\"!=typeof r.status?t(0,\"error\"):t(r.status,r.statusText):t(Ut[r.status]||r.status,r.statusText,\"text\"!==(r.responseType||\"text\")||\"string\"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=i(),a=r.onerror=r.ontimeout=i(\"error\"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&T.setTimeout(function(){i&&a()})},i=i(\"abort\");try{r.send(o.hasContent&&o.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/\\b(?:java|ecma)script\\b/},converters:{\"text script\":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter(\"script\",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type=\"GET\")}),k.ajaxTransport(\"script\",function(n){var r,o;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=k(\"<script>\").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on(\"load error\",o=function(e){r.remove(),o=null,e&&t(\"error\"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){o&&o()}}});var zt,Gt=[],Xt=/(=)\\?(?=&|$)|\\?\\?/;k.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var e=Gt.pop()||k.expando+\"_\"+St.guid++;return this[e]=!0,e}}),k.ajaxPrefilter(\"json jsonp\",function(e,t,n){var r,o,i,a=!1!==e.jsonp&&(Xt.test(e.url)?\"url\":\"string\"==typeof e.data&&0===(e.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&Xt.test(e.data)&&\"data\");if(a||\"jsonp\"===e.dataTypes[0])return r=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Xt,\"$1\"+r):!1!==e.jsonp&&(e.url+=(_t.test(e.url)?\"&\":\"?\")+e.jsonp+\"=\"+r),e.converters[\"script json\"]=function(){return i||k.error(r+\" was not called\"),i[0]},e.dataTypes[0]=\"json\",o=T[r],T[r]=function(){i=arguments},n.always(function(){void 0===o?k(T).removeProp(r):T[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),i&&y(o)&&o(i[0]),i=o=void 0}),\"script\"}),b.createHTMLDocument=((zt=C.implementation.createHTMLDocument(\"\").body).innerHTML=\"<form></form><form></form>\",2===zt.childNodes.length),k.parseHTML=function(e,t,n){return\"string\"!=typeof e?[]:(\"boolean\"==typeof t&&(n=t,t=!1),t||(b.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument(\"\")).createElement(\"base\")).href=C.location.href,t.head.appendChild(r)):t=C),r=!n&&[],(n=_.exec(e))?[t.createElement(n[1])]:(n=ve([e],t,r),r&&r.length&&k(r).remove(),k.merge([],n.childNodes)));var r},k.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(\" \");return-1<s&&(r=yt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&\"object\"===_typeof(t)&&(o=\"POST\"),0<a.length&&k.ajax({url:e,type:o||\"GET\",dataType:\"html\",data:t}).done(function(e){i=arguments,a.html(r?k(\"<div>\").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,o,i,a,s=k.css(e,\"position\"),u=k(e),c={};\"static\"===s&&(e.style.position=\"relative\"),i=u.offset(),r=k.css(e,\"top\"),a=k.css(e,\"left\"),a=(\"absolute\"===s||\"fixed\"===s)&&-1<(r+a).indexOf(\"auto\")?(o=(s=u.position()).top,s.left):(o=parseFloat(r)||0,parseFloat(a)||0),null!=(t=y(t)?t.call(e,n,k.extend({},i)):t).top&&(c.top=t.top-i.top+o),null!=t.left&&(c.left=t.left-i.left+a),\"using\"in t?t.using.call(e,c):u.css(c)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if(\"fixed\"===k.css(r,\"position\"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&\"static\"===k.css(e,\"position\");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=k(e).offset()).top+=k.css(e,\"borderTopWidth\",!0),o.left+=k.css(e,\"borderLeftWidth\",!0))}return{top:t.top-o.top-k.css(r,\"marginTop\",!0),left:t.left-o.left-k.css(r,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&\"static\"===k.css(e,\"position\");)e=e.offsetParent;return e||ne})}}),k.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(t,o){var i=\"pageYOffset\"===o;k.fn[t]=function(e){return F(this,function(e,t,n){var r;return g(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n?r?r[o]:e[t]:void(r?r.scrollTo(i?r.pageXOffset:n,i?n:r.pageYOffset):e[t]=n)},t,e,arguments.length)}}),k.each([\"top\",\"left\"],function(e,n){k.cssHooks[n]=ze(b.pixelPosition,function(e,t){if(t)return t=Je(e,n),Fe.test(t)?k(e).position()[n]+\"px\":t})}),k.each({Height:\"height\",Width:\"width\"},function(a,s){k.each({padding:\"inner\"+a,content:s,\"\":\"outer\"+a},function(r,i){k.fn[i]=function(e,t){var n=arguments.length&&(r||\"boolean\"!=typeof e),o=r||(!0===e||!0===t?\"margin\":\"border\");return F(this,function(e,t,n){var r;return g(e)?0===i.indexOf(\"outer\")?e[\"inner\"+a]:e.document.documentElement[\"client\"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body[\"scroll\"+a],r[\"scroll\"+a],e.body[\"offset\"+a],r[\"offset\"+a],r[\"client\"+a])):void 0===n?k.css(e,t,o):k.style(e,t,n,o)},s,n?e:void 0,n)}})}),k.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,\"**\"):this.off(t,e||\"**\",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.each(\"blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu\".split(\" \"),function(e,n){k.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Yt=/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g;k.proxy=function(e,t){var n,r;if(\"string\"==typeof t&&(r=e[t],t=e,e=r),y(e))return n=s.call(arguments,2),(r=function(){return e.apply(t||this,n.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,r},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=S,k.isFunction=y,k.isWindow=g,k.camelCase=U,k.type=h,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return(\"number\"===t||\"string\"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?\"\":(e+\"\").replace(Yt,\"\")},\"function\"==typeof define&&define.amd&&define(\"jquery\",[],function(){return k});var Kt=T.jQuery,Qt=T.$;return k.noConflict=function(e){return T.$===k&&(T.$=Qt),e&&T.jQuery===k&&(T.jQuery=Kt),k},void 0===e&&(T.jQuery=T.$=k),k}),function(ke){var e,Ee=this||(0,eval)(\"this\"),Se=Ee.document,_e=Ee.navigator,Ne=Ee.jQuery,Ae=Ee.JSON;Ne||\"undefined\"==typeof jQuery||(Ne=jQuery),e=function(e,r){function n(e,t){return(null===e||_typeof(e)in y)&&e===t}function i(e,t){var n;return function(){n=n||N.a.setTimeout(function(){n=ke,e()},t)}}function a(e,t){var n;return function(){clearTimeout(n),n=N.a.setTimeout(e,t)}}function c(e,t){t&&\"change\"!==t?\"beforeChange\"===t?this.pc(e):this.gb(e,t):this.qc(e)}function o(e,t){null!==t&&t.s&&t.s()}function s(e,t){var n=this.qd,r=n[D];r.ra||(this.Qb&&this.mb[t]?(n.uc(t,e,this.mb[t]),this.mb[t]=null,--this.Qb):r.I[t]||n.uc(t,e,r.J?{da:e}:n.$c(e)),e.Ja&&e.gd())}var u,l,f,d,t,p,h,g,v,N=void 0!==e?e:{};function m(){if(h)for(var e,t=h,n=0;v<h;)if(e=p[v++]){if(t<v){if(5e3<=++n){v=h,N.a.Gc(Error(\"'Too much recursion' after processing \"+n+\" task groups.\"));break}t=h}try{e()}catch(e){N.a.Gc(e)}}}function b(){m(),v=h=p.length=0}N.b=function(e,t){for(var n=e.split(\".\"),r=N,o=0;o<n.length-1;o++)r=r[n[o]];r[n[n.length-1]]=t},N.L=function(e,t,n){e[t]=n},N.version=\"3.5.1\",N.b(\"version\",N.version),N.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},N.a=function(){function f(e,t){for(var n in e)i.call(e,n)&&t(n,e[n])}function e(e,t){if(t)for(var n in t)i.call(t,n)&&(e[n]=t[n]);return e}function t(e,t){return e.__proto__=t,e}function o(e,t,n,r){var o=e[t].match(p)||[];N.a.D(n.match(p),function(e){N.a.Na(o,e,r)}),e[t]=o.join(\" \")}var i=Object.prototype.hasOwnProperty,n={__proto__:[]}instanceof Array,r=\"function\"==typeof Symbol,a={},s={};a[_e&&/Firefox\\/2/i.test(_e.userAgent)?\"KeyboardEvent\":\"UIEvents\"]=[\"keyup\",\"keydown\",\"keypress\"],a.MouseEvents=\"click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave\".split(\" \"),f(a,function(e,t){if(t.length)for(var n=0,r=t.length;n<r;n++)s[t[n]]=e});var u,c,l={propertychange:!0},d=Se&&function(){for(var e=3,t=Se.createElement(\"div\"),n=t.getElementsByTagName(\"i\");t.innerHTML=\"\\x3c!--[if gt IE \"+ ++e+\"]><i></i><![endif]--\\x3e\",n[0];);return 4<e?e:ke}(),p=/\\S+/g;return{Jc:[\"authenticity_token\",/^__RequestVerificationToken(_.*)?$/],D:function(e,t,n){for(var r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},A:\"function\"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Lb:function(e,t,n){for(var r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return e[r];return ke},Pa:function(e,t){t=N.a.A(e,t);0<t?e.splice(t,1):0===t&&e.shift()},wc:function(e){var t=[];return e&&N.a.D(e,function(e){N.a.A(t,e)<0&&t.push(e)}),t},Mb:function(e,t,n){var r=[];if(e)for(var o=0,i=e.length;o<i;o++)r.push(t.call(n,e[o],o));return r},jb:function(e,t,n){var r=[];if(e)for(var o=0,i=e.length;o<i;o++)t.call(n,e[o],o)&&r.push(e[o]);return r},Nb:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,r=t.length;n<r;n++)e.push(t[n]);return e},Na:function(e,t,n){var r=N.a.A(N.a.bc(e),t);r<0?n&&e.push(t):n||e.splice(r,1)},Ba:n,extend:e,setPrototypeOf:t,Ab:n?t:e,P:f,Ga:function(e,t,n){if(!e)return e;var r,o={};for(r in e)i.call(e,r)&&(o[r]=t.call(n,e[r],r,e));return o},Tb:function(e){for(;e.firstChild;)N.removeNode(e.firstChild)},Yb:function(e){for(var t=((e=N.a.la(e))[0]&&e[0].ownerDocument||Se).createElement(\"div\"),n=0,r=e.length;n<r;n++)t.appendChild(N.oa(e[n]));return t},Ca:function(e,t){for(var n=0,r=e.length,o=[];n<r;n++){var i=e[n].cloneNode(!0);o.push(t?N.oa(i):i)}return o},va:function(e,t){if(N.a.Tb(e),t)for(var n=0,r=t.length;n<r;n++)e.appendChild(t[n])},Xc:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var r=n[0],o=r.parentNode,i=0,a=t.length;i<a;i++)o.insertBefore(t[i],r);for(i=0,a=n.length;i<a;i++)N.removeNode(n[i])}},Ua:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var n=e[0],r=e[e.length-1];for(e.length=0;n!==r;)e.push(n),n=n.nextSibling;e.push(r)}}return e},Zc:function(e,t){d<7?e.setAttribute(\"selected\",t):e.selected=t},Db:function(e){return null===e||e===ke?\"\":e.trim?e.trim():e.toString().replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\")},Ud:function(e,t){return e=e||\"\",!(t.length>e.length)&&e.substring(0,t.length)===t},vd:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Sb:function(e){return N.a.vd(e,e.ownerDocument.documentElement)},kd:function(e){return!!N.a.Lb(e,N.a.Sb)},R:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Ac:function(e){return N.onError?function(){try{return e.apply(this,arguments)}catch(e){throw N.onError&&N.onError(e),e}}:e},setTimeout:(c=function(e,t){return setTimeout(N.a.Ac(e),t)},h.toString=function(){return c.toString()},h),Gc:function(e){setTimeout(function(){throw N.onError&&N.onError(e),e},0)},B:function(t,e,n){var r=N.a.Ac(n);if(n=l[e],N.options.useOnlyNativeEvents||n||!Ne)if(n||\"function\"!=typeof t.addEventListener){if(void 0===t.attachEvent)throw Error(\"Browser doesn't support addEventListener or attachEvent\");var o=function(e){r.call(t,e)},i=\"on\"+e;t.attachEvent(i,o),N.a.K.za(t,function(){t.detachEvent(i,o)})}else t.addEventListener(e,r,!1);else u=u||(\"function\"==typeof Ne(t).on?\"on\":\"bind\"),Ne(t)[u](e,r)},Fb:function(e,t){if(!e||!e.nodeType)throw Error(\"element must be a DOM node when calling triggerEvent\");var n=!(\"input\"!==N.a.R(e)||!e.type||\"click\"!=t.toLowerCase())&&(\"checkbox\"==(n=e.type)||\"radio\"==n);if(N.options.useOnlyNativeEvents||!Ne||n)if(\"function\"==typeof Se.createEvent){if(\"function\"!=typeof e.dispatchEvent)throw Error(\"The supplied element doesn't support dispatchEvent\");(n=Se.createEvent(s[t]||\"HTMLEvents\")).initEvent(t,!0,!0,Ee,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(n)}else if(n&&e.click)e.click();else{if(void 0===e.fireEvent)throw Error(\"Browser doesn't support triggering events\");e.fireEvent(\"on\"+t)}else Ne(e).trigger(t)},f:function(e){return N.O(e)?e():e},bc:function(e){return N.O(e)?e.v():e},Eb:function(t,e,n){var r;e&&(\"object\"===_typeof(t.classList)?(r=t.classList[n?\"add\":\"remove\"],N.a.D(e.match(p),function(e){r.call(t.classList,e)})):\"string\"==typeof t.className.baseVal?o(t.className,\"baseVal\",e,n):o(t,\"className\",e,n))},Bb:function(e,t){var n=N.a.f(t);null!==n&&n!==ke||(n=\"\");t=N.h.firstChild(e);!t||3!=t.nodeType||N.h.nextSibling(t)?N.h.va(e,[e.ownerDocument.createTextNode(n)]):t.data=n,N.a.Ad(e)},Yc:function(e,t){if(e.name=t,d<=7)try{var n=e.name.replace(/[&<>'\"]/g,function(e){return\"&#\"+e.charCodeAt(0)+\";\"});e.mergeAttributes(Se.createElement(\"<input name='\"+n+\"'/>\"),!1)}catch(e){}},Ad:function(e){9<=d&&((e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom))},wd:function(e){var t;d&&(t=e.style.width,e.style.width=0,e.style.width=t)},Pd:function(e,t){e=N.a.f(e),t=N.a.f(t);for(var n=[],r=e;r<=t;r++)n.push(r);return n},la:function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n]);return t},Da:function(e){return r?Symbol(e):e},Zd:6===d,$d:7===d,W:d,Lc:function(e,t){for(var n=N.a.la(e.getElementsByTagName(\"input\")).concat(N.a.la(e.getElementsByTagName(\"textarea\"))),r=\"string\"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},o=[],i=n.length-1;0<=i;i--)r(n[i])&&o.push(n[i]);return o},Nd:function(e){return\"string\"==typeof e&&(e=N.a.Db(e))?Ae&&Ae.parse?Ae.parse(e):new Function(\"return \"+e)():null},hc:function(e,t,n){if(!Ae||!Ae.stringify)throw Error(\"Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js\");return Ae.stringify(N.a.f(e),t,n)},Od:function(e,t,n){var r=(n=n||{}).params||{},o=n.includeFields||this.Jc,i=e;if(\"object\"==_typeof(e)&&\"form\"===N.a.R(e))for(var i=e.action,a=o.length-1;0<=a;a--)for(var s=N.a.Lc(e,o[a]),u=s.length-1;0<=u;u--)r[s[u].name]=s[u].value;t=N.a.f(t);var c,l=Se.createElement(\"form\");for(c in l.style.display=\"none\",l.action=i,l.method=\"post\",t)(e=Se.createElement(\"input\")).type=\"hidden\",e.name=c,e.value=N.a.hc(N.a.f(t[c])),l.appendChild(e);f(r,function(e,t){var n=Se.createElement(\"input\");n.type=\"hidden\",n.name=e,n.value=t,l.appendChild(n)}),Se.body.appendChild(l),n.submitter?n.submitter(l):l.submit(),setTimeout(function(){l.parentNode.removeChild(l)},0)}};function h(e,t){return c.apply(this,arguments)}}(),N.b(\"utils\",N.a),N.b(\"utils.arrayForEach\",N.a.D),N.b(\"utils.arrayFirst\",N.a.Lb),N.b(\"utils.arrayFilter\",N.a.jb),N.b(\"utils.arrayGetDistinctValues\",N.a.wc),N.b(\"utils.arrayIndexOf\",N.a.A),N.b(\"utils.arrayMap\",N.a.Mb),N.b(\"utils.arrayPushAll\",N.a.Nb),N.b(\"utils.arrayRemoveItem\",N.a.Pa),N.b(\"utils.cloneNodes\",N.a.Ca),N.b(\"utils.createSymbolOrString\",N.a.Da),N.b(\"utils.extend\",N.a.extend),N.b(\"utils.fieldsIncludedWithJsonPost\",N.a.Jc),N.b(\"utils.getFormFields\",N.a.Lc),N.b(\"utils.objectMap\",N.a.Ga),N.b(\"utils.peekObservable\",N.a.bc),N.b(\"utils.postJson\",N.a.Od),N.b(\"utils.parseJson\",N.a.Nd),N.b(\"utils.registerEventHandler\",N.a.B),N.b(\"utils.stringifyJson\",N.a.hc),N.b(\"utils.range\",N.a.Pd),N.b(\"utils.toggleDomNodeCssClass\",N.a.Eb),N.b(\"utils.triggerEvent\",N.a.Fb),N.b(\"utils.unwrapObservable\",N.a.f),N.b(\"utils.objectForEach\",N.a.P),N.b(\"utils.addOrRemoveItem\",N.a.Na),N.b(\"utils.setTextContent\",N.a.Bb),N.b(\"unwrap\",N.a.f),Function.prototype.bind||(Function.prototype.bind=function(t){var n=this;if(1===arguments.length)return function(){return n.apply(t,arguments)};var r=Array.prototype.slice.call(arguments,1);return function(){var e=r.slice(0);return e.push.apply(e,arguments),n.apply(t,e)}}),N.a.g=new function(){var r,o=0,i=\"__ko__\"+(new Date).getTime(),a={},e=N.a.W?(r=function(e,t){var n=e[i];if(!n||\"null\"===n||!a[n]){if(!t)return ke;n=e[i]=\"ko\"+o++,a[n]={}}return a[n]},function(e){var t=e[i];return!!t&&(delete a[t],!(e[i]=null))}):(r=function(e,t){var n=e[i];return n=!n&&t?e[i]={}:n},function(e){return!!e[i]&&(delete e[i],!0)});return{get:function(e,t){e=r(e,!1);return e&&e[t]},set:function(e,t,n){(e=r(e,n!==ke))&&(e[t]=n)},Ub:function(e,t,n){return(e=r(e,!0))[t]||(e[t]=n)},clear:e,Z:function(){return o+++i}}},N.b(\"utils.domData\",N.a.g),N.b(\"utils.domData.clear\",N.a.g.clear),N.a.K=new function(){function r(e,t){var n=N.a.g.get(e,a);return n===ke&&t&&(n=[],N.a.g.set(e,a,n)),n}function i(e){if(t=r(e,!1))for(var t=t.slice(0),n=0;n<t.length;n++)t[n](e);N.a.g.clear(e),N.a.K.cleanExternalData(e),s[e.nodeType]&&o(e.childNodes,!0)}function o(e,t){for(var n,r=[],o=0;o<e.length;o++)if((!t||8===e[o].nodeType)&&(i(r[r.length]=n=e[o]),e[o]!==n))for(;o--&&-1==N.a.A(r,e[o]););}var a=N.a.g.Z(),t={1:!0,8:!0,9:!0},s={1:!0,9:!0};return{za:function(e,t){if(\"function\"!=typeof t)throw Error(\"Callback must be a function\");r(e,!0).push(t)},yb:function(e,t){var n=r(e,!1);n&&(N.a.Pa(n,t),0==n.length&&N.a.g.set(e,a,ke))},oa:function(e){return N.u.G(function(){t[e.nodeType]&&(i(e),s[e.nodeType]&&o(e.getElementsByTagName(\"*\")))}),e},removeNode:function(e){N.oa(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){Ne&&\"function\"==typeof Ne.cleanData&&Ne.cleanData([e])}}},N.oa=N.a.K.oa,N.removeNode=N.a.K.removeNode,N.b(\"cleanNode\",N.oa),N.b(\"removeNode\",N.removeNode),N.b(\"utils.domNodeDisposal\",N.a.K),N.b(\"utils.domNodeDisposal.addDisposeCallback\",N.a.K.za),N.b(\"utils.domNodeDisposal.removeDisposeCallback\",N.a.K.yb),u=[0,\"\",\"\"],l={thead:e=[1,\"<table>\",\"</table>\"],tbody:e,tfoot:e,tr:[2,\"<table><tbody>\",\"</tbody></table>\"],td:e=[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],th:e,option:e=[1,\"<select multiple='multiple'>\",\"</select>\"],optgroup:e},f=N.a.W<=8,N.a.ua=function(e,t){var n;if(Ne){if(Ne.parseHTML)n=Ne.parseHTML(e,t)||[];else if((n=Ne.clean([e],t))&&n[0]){for(var r=n[0];r.parentNode&&11!==r.parentNode.nodeType;)r=r.parentNode;r.parentNode&&r.parentNode.removeChild(r)}}else{var r=(n=!(n=t)?Se:n).parentWindow||n.defaultView||Ee,o=N.a.Db(e).toLowerCase(),i=n.createElement(\"div\"),t=(o=o.match(/^(?:\\x3c!--.*?--\\x3e\\s*?)*?<([a-z]+)[\\s>]/))&&l[o[1]]||u,o=t[0];for(t=\"ignored<div>\"+t[1]+e+t[2]+\"</div>\",\"function\"==typeof r.innerShiv?i.appendChild(r.innerShiv(t)):(f&&n.body.appendChild(i),i.innerHTML=t,f&&i.parentNode.removeChild(i));o--;)i=i.lastChild;n=N.a.la(i.lastChild.childNodes)}return n},N.a.Md=function(e,t){t=N.a.ua(e,t);return t.length&&t[0].parentElement||N.a.Yb(t)},N.a.fc=function(e,t){if(N.a.Tb(e),null!==(t=N.a.f(t))&&t!==ke)if(\"string\"!=typeof t&&(t=t.toString()),Ne)Ne(e).html(t);else for(var n=N.a.ua(t,e.ownerDocument),r=0;r<n.length;r++)e.appendChild(n[r])},N.b(\"utils.parseHtmlFragment\",N.a.ua),N.b(\"utils.setHtml\",N.a.fc),N.aa=(d={},{Xb:function(e){if(\"function\"!=typeof e)throw Error(\"You can only pass a function to ko.memoization.memoize()\");var t=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return d[t]=e,\"\\x3c!--[ko_memo:\"+t+\"]--\\x3e\"},bd:function(e,t){var n=d[e];if(n===ke)throw Error(\"Couldn't find any memo with ID \"+e+\". Perhaps it's already been unmemoized.\");try{return n.apply(null,t||[]),!0}finally{delete d[e]}},cd:function(e,t){var n=[];!function e(t,n){if(t)if(8==t.nodeType)null!=(r=N.aa.Uc(t.nodeValue))&&n.push({ud:t,Kd:r});else if(1==t.nodeType)for(var r=0,o=t.childNodes,i=o.length;r<i;r++)e(o[r],n)}(e,n);for(var r=0,o=n.length;r<o;r++){var i=n[r].ud,a=[i];t&&N.a.Nb(a,t),N.aa.bd(n[r].Kd,a),i.nodeValue=\"\",i.parentNode&&i.parentNode.removeChild(i)}},Uc:function(e){return(e=e.match(/^\\[ko_memo\\:(.*?)\\]$/))?e[1]:null}}),N.b(\"memoization\",N.aa),N.b(\"memoization.memoize\",N.aa.Xb),N.b(\"memoization.unmemoize\",N.aa.bd),N.b(\"memoization.parseMemoText\",N.aa.Uc),N.b(\"memoization.unmemoizeDomNodeAndDescendants\",N.aa.cd),N.na=(p=[],g=1,v=h=0,{scheduler:se=Ee.MutationObserver?(se=b,t=Se.createElement(\"div\"),new MutationObserver(se).observe(t,{attributes:!0}),function(){t.classList.toggle(\"foo\")}):Se&&\"onreadystatechange\"in Se.createElement(\"script\")?function(e){var t=Se.createElement(\"script\");t.onreadystatechange=function(){t.onreadystatechange=null,Se.documentElement.removeChild(t),t=null,e()},Se.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},zb:function(e){return h||N.na.scheduler(b),p[h++]=e,g++},cancel:function(e){v<=(e-=g-h)&&e<h&&(p[e]=null)},resetForTesting:function(){var e=h-v;return v=h=p.length=0,e},Sd:m}),N.b(\"tasks\",N.na),N.b(\"tasks.schedule\",N.na.zb),N.b(\"tasks.runEarly\",N.na.Sd),N.Ta={throttle:function(t,n){t.throttleEvaluation=n;var r=null;return N.$({read:t,write:function(e){clearTimeout(r),r=N.a.setTimeout(function(){t(e)},n)}})},rateLimit:function(e,t){var n,r,o;\"number\"==typeof t?n=t:(n=t.timeout,r=t.method),e.Hb=!1,o=\"function\"==typeof r?r:\"notifyWhenChangesStop\"==r?a:i,e.ub(function(e){return o(e,n,t)})},deferred:function(r,e){if(!0!==e)throw Error(\"The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.\");r.Hb||(r.Hb=!0,r.ub(function(e){var t,n=!1;return function(){if(!n){N.na.cancel(t),t=N.na.zb(e);try{n=!0,r.notifySubscribers(ke,\"dirty\")}finally{n=!1}}}}))},notify:function(e,t){e.equalityComparer=\"always\"==t?null:n}};var y={undefined:1,boolean:1,number:1,string:1};N.b(\"extenders\",N.Ta),N.ic=function(e,t,n){this.da=e,this.lc=t,this.mc=n,this.Ib=!1,this.fb=this.Jb=null,N.L(this,\"dispose\",this.s),N.L(this,\"disposeWhenNodeIsRemoved\",this.l)},N.ic.prototype.s=function(){this.Ib||(this.fb&&N.a.K.yb(this.Jb,this.fb),this.Ib=!0,this.mc(),this.da=this.lc=this.mc=this.Jb=this.fb=null)},N.ic.prototype.l=function(e){this.Jb=e,N.a.K.za(e,this.fb=this.s.bind(this))},N.T=function(){N.a.Ab(this,C),C.qb(this)};var w,x,T,C={qb:function(e){e.U={change:[]},e.sc=1},subscribe:function(e,t,n){var r=this;n=n||\"change\";var o=new N.ic(r,t?e.bind(t):e,function(){N.a.Pa(r.U[n],o),r.hb&&r.hb(n)});return r.Qa&&r.Qa(n),r.U[n]||(r.U[n]=[]),r.U[n].push(o),o},notifySubscribers:function(e,t){if(\"change\"===(t=t||\"change\")&&this.Gb(),this.Wa(t)){var n=\"change\"===t&&this.ed||this.U[t].slice(0);try{N.u.xc();for(var r,o=0;r=n[o];++o)r.Ib||r.lc(e)}finally{N.u.end()}}},ob:function(){return this.sc},Dd:function(e){return this.ob()!==e},Gb:function(){++this.sc},ub:function(e){var n,t,r,o,i,a=this,s=N.O(a);a.gb||(a.gb=a.notifySubscribers,a.notifySubscribers=c);var u=e(function(){a.Ja=!1,s&&o===a&&(o=a.nc?a.nc():a());var e=t||i&&a.sb(r,o);i=t=n=!1,e&&a.gb(r=o)});a.qc=function(e,t){t&&a.Ja||(i=!t),a.ed=a.U.change.slice(0),a.Ja=n=!0,o=e,u()},a.pc=function(e){n||(r=e,a.gb(e,\"beforeChange\"))},a.rc=function(){i=!0},a.gd=function(){a.sb(r,a.v(!0))&&(t=!0)}},Wa:function(e){return this.U[e]&&this.U[e].length},Bd:function(e){if(e)return this.U[e]&&this.U[e].length||0;var n=0;return N.a.P(this.U,function(e,t){\"dirty\"!==e&&(n+=t.length)}),n},sb:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return\"[object Object]\"},extend:function(e){var n=this;return e&&N.a.P(e,function(e,t){e=N.Ta[e];\"function\"==typeof e&&(n=e(n,t)||n)}),n}};function k(e){x.push(w),w=e}function E(){w=x.pop()}N.L(C,\"init\",C.qb),N.L(C,\"subscribe\",C.subscribe),N.L(C,\"extend\",C.extend),N.L(C,\"getSubscriptionsCount\",C.Bd),N.a.Ba&&N.a.setPrototypeOf(C,Function.prototype),N.T.fn=C,N.Qc=function(e){return null!=e&&\"function\"==typeof e.subscribe&&\"function\"==typeof e.notifySubscribers},N.b(\"subscribable\",N.T),N.b(\"isSubscribable\",N.Qc),N.S=N.u=(x=[],T=0,{xc:k,end:E,cc:function(e){if(w){if(!N.Qc(e))throw Error(\"Only subscribable things can act as dependencies\");w.od.call(w.pd,e,e.fd||(e.fd=++T))}},G:function(e,t,n){try{return k(),e.apply(t,n||[])}finally{E()}},qa:function(){if(w)return w.o.qa()},Va:function(){if(w)return w.o.Va()},Ya:function(){if(w)return w.Ya},o:function(){if(w)return w.o}}),N.b(\"computedContext\",N.S),N.b(\"computedContext.getDependenciesCount\",N.S.qa),N.b(\"computedContext.getDependencies\",N.S.Va),N.b(\"computedContext.isInitial\",N.S.Ya),N.b(\"computedContext.registerDependency\",N.S.cc),N.b(\"ignoreDependencies\",N.Yd=N.u.G);var S=N.a.Da(\"_latestValue\");N.ta=function(e){function t(){return 0<arguments.length?(t.sb(t[S],arguments[0])&&(t.ya(),t[S]=arguments[0],t.xa()),this):(N.u.cc(t),t[S])}return t[S]=e,N.a.Ba||N.a.extend(t,N.T.fn),N.T.fn.qb(t),N.a.Ab(t,_),N.options.deferUpdates&&N.Ta.deferred(t,!0),t};var _={equalityComparer:n,v:function(){return this[S]},xa:function(){this.notifySubscribers(this[S],\"spectate\"),this.notifySubscribers(this[S])},ya:function(){this.notifySubscribers(this[S],\"beforeChange\")}};N.a.Ba&&N.a.setPrototypeOf(_,N.T.fn);var A=N.ta.Ma=\"__ko_proto__\";_[A]=N.ta,N.O=function(e){if((e=\"function\"==typeof e&&e[A])&&e!==_[A]&&e!==N.o.fn[A])throw Error(\"Invalid object that looks like an observable; possibly from another Knockout instance\");return!!e},N.Za=function(e){return\"function\"==typeof e&&(e[A]===_[A]||e[A]===N.o.fn[A]&&e.Nc)},N.b(\"observable\",N.ta),N.b(\"isObservable\",N.O),N.b(\"isWriteableObservable\",N.Za),N.b(\"isWritableObservable\",N.Za),N.b(\"observable.fn\",_),N.L(_,\"peek\",_.v),N.L(_,\"valueHasMutated\",_.xa),N.L(_,\"valueWillMutate\",_.ya),N.Ha=function(e){if(\"object\"!=_typeof(e=e||[])||!(\"length\"in e))throw Error(\"The argument passed when initializing an observable array must be an array, or null, or undefined.\");return e=N.ta(e),N.a.Ab(e,N.Ha.fn),e.extend({trackArrayChanges:!0})},N.Ha.fn={remove:function(t){for(var e=this.v(),n=[],r=\"function\"!=typeof t||N.O(t)?function(e){return e===t}:t,o=0;o<e.length;o++){var i=e[o];if(r(i)){if(0===n.length&&this.ya(),e[o]!==i)throw Error(\"Array modified during remove; cannot remove item\");n.push(i),e.splice(o,1),o--}}return n.length&&this.xa(),n},removeAll:function(t){if(t!==ke)return t?this.remove(function(e){return 0<=N.a.A(t,e)}):[];var e=this.v(),n=e.slice(0);return this.ya(),e.splice(0,e.length),this.xa(),n},destroy:function(t){var e=this.v(),n=\"function\"!=typeof t||N.O(t)?function(e){return e===t}:t;this.ya();for(var r=e.length-1;0<=r;r--){var o=e[r];n(o)&&(o._destroy=!0)}this.xa()},destroyAll:function(t){return t===ke?this.destroy(function(){return!0}):t?this.destroy(function(e){return 0<=N.a.A(t,e)}):[]},indexOf:function(e){var t=this();return N.a.A(t,e)},replace:function(e,t){e=this.indexOf(e);0<=e&&(this.ya(),this.v()[e]=t,this.xa())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},N.a.Ba&&N.a.setPrototypeOf(N.Ha.fn,N.ta.fn),N.a.D(\"pop push reverse shift sort splice unshift\".split(\" \"),function(n){N.Ha.fn[n]=function(){var e=this.v();this.ya(),this.zc(e,n,arguments);var t=e[n].apply(e,arguments);return this.xa(),t===e?this:t}}),N.a.D([\"slice\"],function(t){N.Ha.fn[t]=function(){var e=this();return e[t].apply(e,arguments)}}),N.Pc=function(e){return N.O(e)&&\"function\"==typeof e.remove&&\"function\"==typeof e.push},N.b(\"observableArray\",N.Ha),N.b(\"isObservableArray\",N.Pc),N.Ta.trackArrayChanges=function(n,e){var f,d,r,o,p,i,a,t;n.Ob={},e&&\"object\"==_typeof(e)&&N.a.extend(n.Ob,e),n.Ob.sparse=!0,n.zc||(f=!1,d=null,p=0,a=n.Qa,t=n.hb,n.Qa=function(e){function t(){var e,t;p&&(e=[].concat(n.v()||[]),n.Wa(\"arrayChange\")&&(t=d=!d||1<p?N.a.Pb(i,e,n.Ob):d),i=e,d=null,p=0,t&&t.length&&n.notifySubscribers(t,\"arrayChange\"))}a&&a.call(n,e),\"arrayChange\"===e&&(f?t():(f=!0,o=n.subscribe(function(){++p},null,\"spectate\"),i=[].concat(n.v()||[]),d=null,r=n.subscribe(t)))},n.hb=function(e){t&&t.call(n,e),\"arrayChange\"!==e||n.Wa(\"arrayChange\")||(r&&r.s(),o&&o.s(),o=r=null,f=!1,i=ke)},n.zc=function(e,t,n){function r(e,t,n){return o[o.length]={status:e,value:t,index:n}}if(f&&!p){var o=[],i=e.length,a=n.length,s=0;switch(t){case\"push\":s=i;case\"unshift\":for(t=0;t<a;t++)r(\"added\",n[t],s+t);break;case\"pop\":s=i-1;case\"shift\":i&&r(\"deleted\",e[s],s);break;case\"splice\":t=Math.min(Math.max(0,n[0]<0?i+n[0]:n[0]),i);for(var i=1===a?i:Math.min(t+(n[1]||0),i),a=t+a-2,s=Math.max(i,a),u=[],c=[],l=2;t<s;++t,++l)t<i&&c.push(r(\"deleted\",e[t],t)),t<a&&u.push(r(\"added\",n[l],t));N.a.Kc(c,u);break;default:return}d=o}})};var D=N.a.Da(\"_state\");N.o=N.$=function(e,t,n){function r(){if(0<arguments.length){if(\"function\"!=typeof o)throw Error(\"Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.\");return o.apply(i.nb,arguments),this}return i.ra||N.u.cc(r),(i.ka||i.J&&r.Xa())&&r.ha(),i.X}if(\"object\"===_typeof(e)?n=e:(n=n||{},e&&(n.read=e)),\"function\"!=typeof n.read)throw Error(\"Pass a function that returns the value of the ko.computed\");var o=n.write,i={X:ke,sa:!0,ka:!0,rb:!1,jc:!1,ra:!1,wb:!1,J:!1,Wc:n.read,nb:t||n.owner,l:n.disposeWhenNodeIsRemoved||n.l||null,Sa:n.disposeWhen||n.Sa,Rb:null,I:{},V:0,Ic:null};return r[D]=i,r.Nc=\"function\"==typeof o,N.a.Ba||N.a.extend(r,N.T.fn),N.T.fn.qb(r),N.a.Ab(r,O),n.pure?(i.wb=!0,i.J=!0,N.a.extend(r,j)):n.deferEvaluation&&N.a.extend(r,q),N.options.deferUpdates&&N.Ta.deferred(r,!0),i.l&&(i.jc=!0,i.l.nodeType||(i.l=null)),i.J||n.deferEvaluation||r.ha(),i.l&&r.ja()&&N.a.K.za(i.l,i.Rb=function(){r.s()}),r};var O={equalityComparer:n,qa:function(){return this[D].V},Va:function(){var n=[];return N.a.P(this[D].I,function(e,t){n[t.Ka]=t.da}),n},Vb:function(t){if(!this[D].V)return!1;var e=this.Va();return-1!==N.a.A(e,t)||!!N.a.Lb(e,function(e){return e.Vb&&e.Vb(t)})},uc:function(e,t,n){if(this[D].wb&&t===this)throw Error(\"A 'pure' computed must not be called recursively\");(this[D].I[e]=n).Ka=this[D].V++,n.La=t.ob()},Xa:function(){var e,t,n=this[D].I;for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e],this.Ia&&t.da.Ja||t.da.Dd(t.La)))return!0},Jd:function(){this.Ia&&!this[D].rb&&this.Ia(!1)},ja:function(){var e=this[D];return e.ka||0<e.V},Rd:function(){this.Ja?this[D].ka&&(this[D].sa=!0):this.Hc()},$c:function(e){if(e.Hb){var t=e.subscribe(this.Jd,this,\"dirty\"),n=e.subscribe(this.Rd,this);return{da:e,s:function(){t.s(),n.s()}}}return e.subscribe(this.Hc,this)},Hc:function(){var e=this,t=e.throttleEvaluation;t&&0<=t?(clearTimeout(this[D].Ic),this[D].Ic=N.a.setTimeout(function(){e.ha(!0)},t)):e.Ia?e.Ia(!0):e.ha(!0)},ha:function(e){var t=this[D],n=t.Sa,r=!1;if(!t.rb&&!t.ra){if(t.l&&!N.a.Sb(t.l)||n&&n()){if(!t.jc)return void this.s()}else t.jc=!1;t.rb=!0;try{r=this.zd(e)}finally{t.rb=!1}return r}},zd:function(e){var t=this[D],n=!1,r=t.wb?ke:!t.V,n={qd:this,mb:t.I,Qb:t.V};N.u.xc({pd:n,od:s,o:this,Ya:r}),t.I={},t.V=0;var o=this.yd(t,n);return(n=t.V?this.sb(t.X,o):(this.s(),!0))&&(t.J?this.Gb():this.notifySubscribers(t.X,\"beforeChange\"),t.X=o,this.notifySubscribers(t.X,\"spectate\"),!t.J&&e&&this.notifySubscribers(t.X),this.rc&&this.rc()),r&&this.notifySubscribers(t.X,\"awake\"),n},yd:function(e,t){try{var n=e.Wc;return e.nb?n.call(e.nb):n()}finally{N.u.end(),t.Qb&&!e.J&&N.a.P(t.mb,o),e.sa=e.ka=!1}},v:function(e){var t=this[D];return(t.ka&&(e||!t.V)||t.J&&this.Xa())&&this.ha(),t.X},ub:function(e){N.T.fn.ub.call(this,e),this.nc=function(){return this[D].J||(this[D].sa?this.ha():this[D].ka=!1),this[D].X},this.Ia=function(e){this.pc(this[D].X),this[D].ka=!0,e&&(this[D].sa=!0),this.qc(this,!e)}},s:function(){var e=this[D];!e.J&&e.I&&N.a.P(e.I,function(e,t){t.s&&t.s()}),e.l&&e.Rb&&N.a.K.yb(e.l,e.Rb),e.I=ke,e.V=0,e.ra=!0,e.sa=!1,e.ka=!1,e.J=!1,e.l=ke,e.Sa=ke,e.Wc=ke,this.Nc||(e.nb=ke)}},j={Qa:function(e){var n,o=this,i=o[D];!i.ra&&i.J&&\"change\"==e&&(i.J=!1,i.sa||o.Xa()?(i.I=null,i.V=0,o.ha()&&o.Gb()):(n=[],N.a.P(i.I,function(e,t){n[t.Ka]=e}),N.a.D(n,function(e,t){var n=i.I[e],r=o.$c(n.da);r.Ka=t,r.La=n.La,i.I[e]=r}),o.Xa()&&o.ha()&&o.Gb()),i.ra||o.notifySubscribers(i.X,\"awake\"))},hb:function(e){var n=this[D];n.ra||\"change\"!=e||this.Wa(\"change\")||(N.a.P(n.I,function(e,t){t.s&&(n.I[e]={da:t.da,Ka:t.Ka,La:t.La},t.s())}),n.J=!0,this.notifySubscribers(ke,\"asleep\"))},ob:function(){var e=this[D];return e.J&&(e.sa||this.Xa())&&this.ha(),N.T.fn.ob.call(this)}},q={Qa:function(e){\"change\"!=e&&\"beforeChange\"!=e||this.v()}};N.a.Ba&&N.a.setPrototypeOf(O,N.T.fn);var M,L,P,I,R,H,B,F,$,W,V,U,J,z,G,X=N.ta.Ma;function Y(r,o,i){if(i=i||new K,\"object\"!=_typeof(r=o(r))||null===r||r===ke||r instanceof RegExp||r instanceof Date||r instanceof String||r instanceof Number||r instanceof Boolean)return r;var a=r instanceof Array?[]:{};return i.save(r,a),function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);\"function\"==typeof e.toJSON&&t(\"toJSON\")}else for(n in e)t(n)}(r,function(e){var t=o(r[e]);switch(_typeof(t)){case\"boolean\":case\"number\":case\"string\":case\"function\":a[e]=t;break;case\"object\":case\"undefined\":var n=i.get(t);a[e]=n!==ke?n:Y(t,o,i)}}),a}function K(){this.keys=[],this.values=[]}function Q(e){123===(e=N.a.Db(e)).charCodeAt(0)&&(e=e.slice(1,-1));var t,n=[],r=(e+=\"\\n,\").match(P),o=[],i=0;if(1<r.length){for(var a,s=0;a=r[s];++s){var u=a.charCodeAt(0);if(44===u){if(i<=0){n.push(t&&o.length?{key:t,value:o.join(\"\")}:{unknown:t||o.join(\"\")}),t=i=0,o=[];continue}}else if(58===u){if(!i&&!t&&1===o.length){t=o.pop();continue}}else{if(47===u&&1<a.length&&(47===a.charCodeAt(1)||42===a.charCodeAt(1)))continue;47===u&&s&&1<a.length?(u=r[s-1].match(I))&&!R[u[0]]&&(r=(e=e.substr(e.indexOf(a)+1)).match(P),s=-1,a=\"/\"):40===u||123===u||91===u?++i:41===u||125===u||93===u?--i:t||o.length||34!==u&&39!==u||(a=a.slice(1,-1))}o.push(a)}if(0<i)throw Error(\"Unbalanced parentheses, braces, or brackets\")}return n}function Z(e){return 8==e.nodeType&&F.test(B?e.text:e.nodeValue)}function ee(e){return 8==e.nodeType&&$.test(B?e.text:e.nodeValue)}function te(e,t){for(var n=e,r=1,o=[];n=n.nextSibling;){if(ee(n)&&(N.a.g.set(n,V,!0),0===--r))return o;o.push(n),Z(n)&&r++}if(!t)throw Error(\"Cannot find closing comment tag to match: \"+e.nodeValue);return null}function ne(e,t){t=te(e,t);return t?(0<t.length?t[t.length-1]:e).nextSibling:null}function re(n,e){var r,o,i,a=Object.prototype.hasOwnProperty.call(J,n)?J[n]:U;a?a.subscribe(e):((a=J[n]=new N.T).subscribe(e),i=function(e,t){t=!(!t||!t.synchronous);z[n]={definition:e,Gd:t},delete J[n],r||t?a.notifySubscribers(e):N.na.zb(function(){a.notifySubscribers(e)})},oe(\"getConfig\",[o=n],function(t){t?oe(\"loadComponent\",[o,t],function(e){i(e,t)}):i(null,null)}),r=!0)}function oe(t,n,r,o){var e=(o=o||N.j.loaders.slice(0)).shift();if(e){var i=e[t];if(i){var a=!1;if(i.apply(e,n.concat(function(e){a?r(null):null!==e?r(e):oe(t,n,r,o)}))!==U&&(a=!0,!e.suppressLoaderExceptions))throw Error(\"Component loaders must supply values by invoking the callback, not by returning values synchronously.\")}else oe(t,n,r,o)}else r(null)}O[X]=N.o,N.Oc=function(e){return\"function\"==typeof e&&e[X]===O[X]},N.Fd=function(e){return N.Oc(e)&&e[D]&&e[D].wb},N.b(\"computed\",N.o),N.b(\"dependentObservable\",N.o),N.b(\"isComputed\",N.Oc),N.b(\"isPureComputed\",N.Fd),N.b(\"computed.fn\",O),N.L(O,\"peek\",O.v),N.L(O,\"dispose\",O.s),N.L(O,\"isActive\",O.ja),N.L(O,\"getDependenciesCount\",O.qa),N.L(O,\"getDependencies\",O.Va),N.xb=function(e,t){return\"function\"==typeof e?N.o(e,t,{pure:!0}):((e=N.a.extend({},e)).pure=!0,N.o(e,t))},N.b(\"pureComputed\",N.xb),N.ad=function(e){if(0==arguments.length)throw Error(\"When calling ko.toJS, pass the object you want to convert.\");return Y(e,function(e){for(var t=0;N.O(e)&&t<10;t++)e=e();return e})},N.toJSON=function(e,t,n){return e=N.ad(e),N.a.hc(e,t,n)},K.prototype={constructor:K,save:function(e,t){var n=N.a.A(this.keys,e);0<=n?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(e){return 0<=(e=N.a.A(this.keys,e))?this.values[e]:ke}},N.b(\"toJS\",N.ad),N.b(\"toJSON\",N.toJSON),N.Wd=function(r,e,o){function t(t){var e=N.xb(r,o).extend({ma:\"always\"}),n=e.subscribe(function(e){e&&(n.s(),t(e))});return e.notifySubscribers(e.v()),n}return\"function\"!=typeof Promise||e?t(e.bind(o)):new Promise(t)},N.b(\"when\",N.Wd),N.w={M:function(e){switch(N.a.R(e)){case\"option\":return!0===e.__ko__hasDomDataOptionValue__?N.a.g.get(e,N.c.options.$b):!(N.a.W<=7)||e.getAttributeNode(\"value\")&&e.getAttributeNode(\"value\").specified?e.value:e.text;case\"select\":return 0<=e.selectedIndex?N.w.M(e.options[e.selectedIndex]):ke;default:return e.value}},cb:function(e,t,n){switch(N.a.R(e)){case\"option\":\"string\"==typeof t?(N.a.g.set(e,N.c.options.$b,ke),\"__ko__hasDomDataOptionValue__\"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=t):(N.a.g.set(e,N.c.options.$b,t),e.__ko__hasDomDataOptionValue__=!0,e.value=\"number\"==typeof t?t:\"\");break;case\"select\":\"\"!==t&&null!==t||(t=ke);for(var r,o=-1,i=0,a=e.options.length;i<a;++i)if((r=N.w.M(e.options[i]))==t||\"\"===r&&t===ke){o=i;break}(n||0<=o||t===ke&&1<e.size)&&(e.selectedIndex=o,6===N.a.W&&N.a.setTimeout(function(){e.selectedIndex=o},0));break;default:null!==t&&t!==ke||(t=\"\"),e.value=t}}},N.b(\"selectExtensions\",N.w),N.b(\"selectExtensions.readValue\",N.w.M),N.b(\"selectExtensions.writeValue\",N.w.cb),N.m=(M=[\"true\",\"false\",\"null\",\"undefined\"],L=/^(?:[$_a-z][$\\w]*|(.+)(\\.\\s*[$_a-z][$\\w]*|\\[.+\\]))$/i,P=RegExp(\"\\\"(?:\\\\\\\\.|[^\\\"])*\\\"|'(?:\\\\\\\\.|[^'])*'|`(?:\\\\\\\\.|[^`])*`|/\\\\*(?:[^*]|\\\\*+[^*/])*\\\\*+/|//.*\\n|/(?:\\\\\\\\.|[^/])+/w*|[^\\\\s:,/][^,\\\"'`{}()/:[\\\\]]*[^\\\\s,\\\"'`{}()/:[\\\\]]|[^\\\\s]\",\"g\"),I=/[\\])\"'A-Za-z0-9_$]+$/,R={in:1,return:1,typeof:1},{Ra:[],wa:H={},ac:Q,vb:function(e,t){function o(e,t){var n;if(!u){var r=N.getBindingHandler(e);if(r&&r.preprocess&&!(t=r.preprocess(t,e,o)))return;(r=H[e])&&(n=t,r=n=!(0<=N.a.A(M,n))&&(null!==(r=n.match(L))&&(r[1]?\"Object(\"+r[1]+\")\"+r[2]:n))),r&&a.push(\"'\"+(\"string\"==typeof H[e]?H[e]:e)+\"':function(_z){\"+n+\"=_z}\")}s&&(t=\"function(){return \"+t+\" }\"),i.push(\"'\"+e+\"':\"+t)}var i=[],a=[],s=(t=t||{}).valueAccessors,u=t.bindingParams,e=\"string\"==typeof e?Q(e):e;return N.a.D(e,function(e){o(e.key||e.unknown,e.value)}),a.length&&o(\"_ko_property_writers\",\"{\"+a.join(\",\")+\" }\"),i.join(\",\")},Id:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},eb:function(e,t,n,r,o){e&&N.O(e)?!N.Za(e)||o&&e.v()===r||e(r):(e=t.get(\"_ko_property_writers\"))&&e[n]&&e[n](r)}}),N.b(\"expressionRewriting\",N.m),N.b(\"expressionRewriting.bindingRewriteValidators\",N.m.Ra),N.b(\"expressionRewriting.parseObjectLiteral\",N.m.ac),N.b(\"expressionRewriting.preProcessBindings\",N.m.vb),N.b(\"expressionRewriting._twoWayBindings\",N.m.wa),N.b(\"jsonExpressionRewriting\",N.m),N.b(\"jsonExpressionRewriting.insertPropertyAccessorsIntoJson\",N.m.vb),B=Se&&\"\\x3c!--test--\\x3e\"===Se.createComment(\"test\").text,F=B?/^\\x3c!--\\s*ko(?:\\s+([\\s\\S]+))?\\s*--\\x3e$/:/^\\s*ko(?:\\s+([\\s\\S]+))?\\s*$/,$=B?/^\\x3c!--\\s*\\/ko\\s*--\\x3e$/:/^\\s*\\/ko\\s*$/,W={ul:!0,ol:!0},V=\"__ko_matchedEndComment__\",N.h={ea:{},childNodes:function(e){return Z(e)?te(e):e.childNodes},Ea:function(e){if(Z(e))for(var t=0,n=(e=N.h.childNodes(e)).length;t<n;t++)N.removeNode(e[t]);else N.a.Tb(e)},va:function(e,t){if(Z(e)){N.h.Ea(e);for(var n=e.nextSibling,r=0,o=t.length;r<o;r++)n.parentNode.insertBefore(t[r],n)}else N.a.va(e,t)},Vc:function(e,t){var n;Z(e)?(n=e.nextSibling,e=e.parentNode):n=e.firstChild,n?t!==n&&e.insertBefore(t,n):e.appendChild(t)},Wb:function(e,t,n){n?(n=n.nextSibling,Z(e)&&(e=e.parentNode),n?t!==n&&e.insertBefore(t,n):e.appendChild(t)):N.h.Vc(e,t)},firstChild:function(e){if(Z(e))return!e.nextSibling||ee(e.nextSibling)?null:e.nextSibling;if(e.firstChild&&ee(e.firstChild))throw Error(\"Found invalid end comment, as the first child of \"+e);return e.firstChild},nextSibling:function(e){if((e=Z(e)?ne(e):e).nextSibling&&ee(e.nextSibling)){var t=e.nextSibling;if(ee(t)&&!N.a.g.get(t,V))throw Error(\"Found end comment without a matching opening comment, as child of \"+e);return null}return e.nextSibling},Cd:Z,Vd:function(e){return(e=(B?e.text:e.nodeValue).match(F))?e[1]:null},Sc:function(e){if(W[N.a.R(e)]){var t=e.firstChild;if(t)do{if(1===t.nodeType){var n,r=t.firstChild,o=null;if(r)do{}while(o?o.push(r):Z(r)?(n=ne(r,!0))?r=n:o=[r]:ee(r)&&(o=[r]),r=r.nextSibling);if(r=o)for(o=t.nextSibling,n=0;n<r.length;n++)o?e.insertBefore(r[n],o):e.appendChild(r[n])}}while(t=t.nextSibling)}}},N.b(\"virtualElements\",N.h),N.b(\"virtualElements.allowedBindings\",N.h.ea),N.b(\"virtualElements.emptyNode\",N.h.Ea),N.b(\"virtualElements.insertAfter\",N.h.Wb),N.b(\"virtualElements.prepend\",N.h.Vc),N.b(\"virtualElements.setDomNodeChildren\",N.h.va),N.ga=function(){this.nd={}},N.a.extend(N.ga.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute(\"data-bind\")||N.j.getComponentNameForNode(e);case 8:return N.h.Cd(e);default:return!1}},getBindings:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e):null;return N.j.tc(n,e,t,!1)},getBindingAccessors:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return N.j.tc(n,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute(\"data-bind\");case 8:return N.h.Vd(e);default:return null}},parseBindingsString:function(t,e,n,r){try{var o,i,a=this.nd,s=t+(r&&r.valueAccessors||\"\");return(i=a[s])||(o=\"with($context){with($data||{}){return{\"+N.m.vb(t,r)+\"}}}\",o=new Function(\"$context\",\"$element\",o),i=a[s]=o),i(e,n)}catch(e){throw e.message=\"Unable to parse bindings.\\nBindings value: \"+t+\"\\nMessage: \"+e.message,e}}}),N.ga.instance=new N.ga,N.b(\"bindingProvider\",N.ga),function(){function r(e){var t=(e=N.a.g.get(e,x))&&e.N;t&&(e.N=null,t.Tc())}function o(e,t,n){this.node=e,this.yc=t,this.kb=[],this.H=!1,t.N||N.a.K.za(e,r),n&&n.N&&(n.N.kb.push(e),this.Kb=n)}function i(e){return function(){return e}}function m(e){return e()}function a(n){return N.a.Ga(N.u.G(n),function(e,t){return function(){return n()[t]}})}function b(e,t){return a(this.getBindings.bind(this,e,t))}function s(e,t){var n=N.h.firstChild(t);if(n){var r,o=N.ga.instance,i=o.preprocessNode;if(i){for(;r=n;)n=N.h.nextSibling(r),i.call(o,r);n=N.h.firstChild(t)}for(;r=n;)n=N.h.nextSibling(r),u(e,r)}N.i.ma(t,N.i.H)}function u(e,t){var n=e,r=1===t.nodeType;r&&N.h.Sc(t),(n=r||N.ga.instance.nodeHasBindings(t)?c(t,null,e).bindingContextForDescendants:n)&&!f[N.a.R(t)]&&s(n,t)}function c(o,e,t){var i,n,r,a,s=N.a.g.Ub(o,x,{}),u=s.hd;if(!e){if(u)throw Error(\"You cannot apply bindings multiple times to the same element.\");s.hd=!0}u||(s.context=t),s.Zb||(s.Zb={}),e&&\"function\"!=typeof e?i=e:(n=N.ga.instance,r=n.getBindingAccessors||b,a=N.$(function(){return(i=e?e(t,o):r.call(n,o,t))&&(t[y]&&t[y](),t[w]&&t[w]()),i},null,{l:o}),i&&a.ja()||(a=null));var c,l,f,d,p,h,g,v=t;return i&&(l=function(){return N.a.Ga(a?a():i,m)},f=a?function(e){return function(){return m(a()[e])}}:function(e){return i[e]},l.get=function(e){return i[e]&&f(e)()},l.has=function(e){return e in i},N.i.H in i&&N.i.subscribe(o,N.i.H,function(){var e,t=(0,i[N.i.H])();!t||(e=N.h.childNodes(o)).length&&t(e,N.Ec(e[0]))}),N.i.pa in i&&(v=N.i.Cb(o,t),N.i.subscribe(o,N.i.pa,function(){var e=(0,i[N.i.pa])();e&&N.h.firstChild(o)&&e(o)})),d=i,p=[],h={},g=[],N.a.P(d,function t(e){var n;h[e]||((n=N.getBindingHandler(e))&&(n.after&&(g.push(e),N.a.D(n.after,function(e){if(d[e]){if(-1!==N.a.A(g,e))throw Error(\"Cannot combine the following bindings, because they have a cyclic dependency: \"+g.join(\", \"));t(e)}}),g.length--),p.push({key:e,Mc:n})),h[e]=!0)}),s=p,N.a.D(s,function(e){var t=e.Mc.init,n=e.Mc.update,r=e.key;if(8===o.nodeType&&!N.h.ea[r])throw Error(\"The binding '\"+r+\"' cannot be used with virtual elements\");try{\"function\"==typeof t&&N.u.G(function(){var e=t(o,f(r),l,v.$data,v);if(e&&e.controlsDescendantBindings){if(c!==ke)throw Error(\"Multiple bindings (\"+c+\" and \"+r+\") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.\");c=r}}),\"function\"==typeof n&&N.$(function(){n(o,f(r),l,v.$data,v)},null,{l:o})}catch(e){throw e.message='Unable to process binding \"'+r+\": \"+i[r]+'\"\\nMessage: '+e.message,e}})),{shouldBindDescendants:s=c===ke,bindingContextForDescendants:s&&v}}function l(e,t){return e&&e instanceof N.fa?e:new N.fa(e,ke,ke,t)}var y=N.a.Da(\"_subscribable\"),d=N.a.Da(\"_ancestorBindingInfo\"),w=N.a.Da(\"_dataDependency\");N.c={};var f={script:!0,textarea:!0,template:!0};N.getBindingHandler=function(e){return N.c[e]};var p={};N.fa=function(e,n,r,o,t){function i(){var e=l?c():c,t=N.a.f(e);return n?(N.a.extend(s,n),d in n&&(s[d]=n[d])):(s.$parents=[],s.$root=t,s.ko=N),s[y]=a,u?t=s.$data:(s.$rawData=e,s.$data=t),r&&(s[r]=t),o&&o(s,n,t),n&&n[y]&&!N.S.o().Vb(n[y])&&n[y](),f&&(s[w]=f),s.$data}var a,s=this,u=e===p,c=u?ke:e,l=\"function\"==typeof c&&!N.O(c),f=t&&t.dataDependency;t&&t.exportDependencies?i():((a=N.xb(i)).v(),a.ja()?a.equalityComparer=null:s[y]=ke)},N.fa.prototype.createChildContext=function(t,n,r,e){if(!e&&n&&\"object\"==_typeof(n)&&(n=(e=n).as,r=e.extend),n&&e&&e.noChildContext){var o=\"function\"==typeof t&&!N.O(t);return new N.fa(p,this,null,function(e){r&&r(e),e[n]=o?t():t},e)}return new N.fa(t,this,n,function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),r&&r(e)},e)},N.fa.prototype.extend=function(t,e){return new N.fa(p,this,null,function(e){N.a.extend(e,\"function\"==typeof t?t(e):t)},e)};var x=N.a.g.Z();o.prototype.Tc=function(){this.Kb&&this.Kb.N&&this.Kb.N.sd(this.node)},o.prototype.sd=function(e){N.a.Pa(this.kb,e),!this.kb.length&&this.H&&this.Cc()},o.prototype.Cc=function(){this.H=!0,this.yc.N&&!this.kb.length&&(this.yc.N=null,N.a.K.yb(this.node,r),N.i.ma(this.node,N.i.pa),this.Tc())},N.i={H:\"childrenComplete\",pa:\"descendantsComplete\",subscribe:function(e,t,n,r,o){var i=N.a.g.Ub(e,x,{});return i.Fa||(i.Fa=new N.T),o&&o.notifyImmediately&&i.Zb[t]&&N.u.G(n,r,[e]),i.Fa.subscribe(n,r,t)},ma:function(e,t){var n=N.a.g.get(e,x);if(n&&(n.Zb[t]=!0,n.Fa&&n.Fa.notifySubscribers(e,t),t==N.i.H))if(n.N)n.N.Cc();else if(n.N===ke&&n.Fa&&n.Fa.Wa(N.i.pa))throw Error(\"descendantsComplete event not supported for bindings on this node\")},Cb:function(e,t){var n=N.a.g.Ub(e,x,{});return n.N||(n.N=new o(e,n,t[d])),t[d]==n?t:t.extend(function(e){e[d]=n})}},N.Td=function(e){return(e=N.a.g.get(e,x))&&e.context},N.ib=function(e,t,n){return 1===e.nodeType&&N.h.Sc(e),c(e,t,l(n))},N.ld=function(e,t,n){return n=l(n),N.ib(e,(r=n,e=e,\"function\"==typeof(t=t)?a(t.bind(null,r,e)):N.a.Ga(t,i)),n);var r},N.Oa=function(e,t){1!==t.nodeType&&8!==t.nodeType||s(l(e),t)},N.vc=function(e,t,n){if(!Ne&&Ee.jQuery&&(Ne=Ee.jQuery),arguments.length<2){if(!(t=Se.body))throw Error(\"ko.applyBindings: could not find document.body; has the document been loaded?\")}else if(!t||1!==t.nodeType&&8!==t.nodeType)throw Error(\"ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node\");u(l(e,n),t)},N.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?ke:N.Td(e)},N.Ec=function(e){return(e=N.Dc(e))?e.$data:ke},N.b(\"bindingHandlers\",N.c),N.b(\"bindingEvent\",N.i),N.b(\"bindingEvent.subscribe\",N.i.subscribe),N.b(\"bindingEvent.startPossiblyAsyncContentBinding\",N.i.Cb),N.b(\"applyBindings\",N.vc),N.b(\"applyBindingsToDescendants\",N.Oa),N.b(\"applyBindingAccessorsToNode\",N.ib),N.b(\"applyBindingsToNode\",N.ld),N.b(\"contextFor\",N.Dc),N.b(\"dataFor\",N.Ec)}(),J={},z={},N.j={get:function(e,t){var n=Object.prototype.hasOwnProperty.call(z,e)?z[e]:U;n?n.Gd?N.u.G(function(){t(n.definition)}):N.na.zb(function(){t(n.definition)}):re(e,t)},Bc:function(e){delete z[e]},oc:oe},N.j.loaders=[],N.b(\"components\",N.j),N.b(\"components.get\",N.j.get),N.b(\"components.clearCachedDefinition\",N.j.Bc),function(){function o(e){switch(N.a.R(e)){case\"script\":return N.a.ua(e.text);case\"textarea\":return N.a.ua(e.value);case\"template\":if(i(e.content))return N.a.Ca(e.content.childNodes)}return N.a.Ca(e.childNodes)}function i(e){return Ee.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function f(e,t,n){\"string\"==typeof t.require?r||Ee.require?(r||Ee.require)([t.require],function(e){e&&\"object\"===_typeof(e)&&e.Xd&&e.default&&(e=e.default),n(e)}):e(\"Uses require, but no AMD loader is present\"):n(t)}function a(t){return function(e){throw Error(\"Component '\"+t+\"': \"+e)}}var n={};N.j.register=function(e,t){if(!t)throw Error(\"Invalid configuration for \"+e);if(N.j.tb(e))throw Error(\"Component \"+e+\" is already registered\");n[e]=t},N.j.tb=function(e){return Object.prototype.hasOwnProperty.call(n,e)},N.j.unregister=function(e){delete n[e],N.j.Bc(e)},N.j.Fc={getConfig:function(e,t){t(N.j.tb(e)?n[e]:null)},loadComponent:function(u,e,c){var l=a(u);f(l,e,function(e){function t(){0==--s&&i(a)}var n,r,o,i,a,s;n=u,r=l,i=c,a={},s=2,e=(o=e).template,o=o.viewModel,e?f(r,e,function(e){N.j.oc(\"loadTemplate\",[n,e],function(e){a.template=e,t()})}):t(),o?f(r,o,function(e){N.j.oc(\"loadViewModel\",[n,e],function(e){a[d]=e,t()})}):t()})},loadTemplate:function(e,t,n){var r;e=a(e),\"string\"==typeof t?n(N.a.ua(t)):t instanceof Array?n(t):i(t)?n(N.a.la(t.childNodes)):t.element?(t=t.element,(Ee.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType)?n(o(t)):\"string\"==typeof t?(r=Se.getElementById(t))?n(o(r)):e(\"Cannot find element with ID \"+t):e(\"Unknown element type: \"+t)):e(\"Unknown template value: \"+t)},loadViewModel:function(e,t,n){!function e(t,n,r){var o;\"function\"==typeof n?r(function(e){return new n(e)}):\"function\"==typeof n[d]?r(n[d]):\"instance\"in n?(o=n.instance,r(function(){return o})):\"viewModel\"in n?e(t,n.viewModel,r):t(\"Unknown viewModel value: \"+n)}(a(e),t,n)}};var d=\"createViewModel\";N.b(\"components.register\",N.j.register),N.b(\"components.isRegistered\",N.j.tb),N.b(\"components.unregister\",N.j.unregister),N.b(\"components.defaultLoader\",N.j.Fc),N.j.loaders.push(N.j.Fc),N.j.dd=n}(),function(){N.j.getComponentNameForNode=function(e){var t=N.a.R(e);if(N.j.tb(t)&&(-1!=t.indexOf(\"-\")||\"[object HTMLUnknownElement]\"==\"\"+e||N.a.W<=8&&e.tagName===t))return t},N.j.tc=function(e,t,n,r){if(1===t.nodeType){var o=N.j.getComponentNameForNode(t);if(o){if((e=e||{}).component)throw Error('Cannot use the \"component\" binding on a custom element matching a component');var i={name:o,params:function(n,e){if(t=n.getAttribute(\"params\")){var t=a.parseBindingsString(t,e,n,{valueAccessors:!0,bindingParams:!0}),t=N.a.Ga(t,function(e){return N.o(e,null,{l:n})}),e=N.a.Ga(t,function(t){var e=t.v();return t.ja()?N.o({read:function(){return N.a.f(t())},write:N.Za(e)&&function(e){t()(e)},l:n}):e});return Object.prototype.hasOwnProperty.call(e,\"$raw\")||(e.$raw=t),e}return{$raw:{}}}(t,n)};e.component=r?function(){return i}:i}}return e};var t,n,a=new N.ga;N.a.W<9&&(N.j.register=(n=N.j.register,function(e){return n.apply(this,arguments)}),Se.createDocumentFragment=(t=Se.createDocumentFragment,function(){var e=t();N.j.dd;return e}))}(),G=0,N.c.component={init:function(l,t,e,n,r){function f(){var e=d&&d.dispose;\"function\"==typeof e&&e.call(d),h&&h.s(),p=d=h=null}var d,p,h,g=N.a.la(N.h.childNodes(l));return N.h.Ea(l),N.a.K.za(l,f),N.o(function(){var a,s,e=N.a.f(t());if(\"string\"==typeof e?a=e:(a=N.a.f(e.name),s=N.a.f(e.params)),!a)throw Error(\"No component name specified\");var u=N.i.Cb(l,r),c=p=++G;N.j.get(a,function(e){if(p===c){if(f(),!e)throw Error(\"Unknown component '\"+a+\"'\");!function(e,t,n){if(!(t=t.template))throw Error(\"Component '\"+e+\"' has no template\");e=N.a.Ca(t),N.h.va(n,e)}(a,e,l);var t=(r=s,o={element:l,templateNodes:g},(i=(n=e).createViewModel)?i.call(n,r,o):r);e=u.createChildContext(t,{extend:function(e){e.$component=t,e.$componentTemplateNodes=g}}),t&&t.koDescendantsComplete&&(h=N.i.subscribe(l,N.i.pa,t.koDescendantsComplete,t)),d=t,N.Oa(e,l)}var n,r,o,i})},null,{l:l}),{controlsDescendantBindings:!0}}},N.h.ea.component=!0;var ie={class:\"className\",for:\"htmlFor\"};function ae(e,p,h){N.c[e]={init:function(o,i,e,t,a){var s,u,c,l,n,f,d={};return p&&(t=e.get(\"as\"),n=e.get(\"noChildContext\"),d={as:t,noChildContext:n,exportDependencies:f=!(t&&n)}),l=(c=\"render\"==e.get(\"completeOn\"))||e.has(N.i.pa),N.o(function(){var e,t=N.a.f(i()),n=!h!=!t,r=!u;!f&&n===s||(l&&(a=N.i.Cb(o,a)),n&&(p&&!f||(d.dataDependency=N.S.o()),e=p?a.createChildContext(\"function\"==typeof t?t:i,d):N.S.qa()?a.extend(null,d):a),r&&N.S.qa()&&(u=N.a.Ca(N.h.childNodes(o),!0)),n?(r||N.h.va(o,N.a.Ca(u)),N.Oa(e,o)):(N.h.Ea(o),c||N.i.ma(o,N.i.H)),s=n)},null,{l:o}),{controlsDescendantBindings:!0}}},N.m.Ra[e]=!1,N.h.ea[e]=!0}N.c.attr={update:function(o,e){e=N.a.f(e())||{};N.a.P(e,function(e,t){t=N.a.f(t);var n=e.indexOf(\":\"),n=\"lookupNamespaceURI\"in o&&0<n&&o.lookupNamespaceURI(e.substr(0,n)),r=!1===t||null===t||t===ke;r?n?o.removeAttributeNS(n,e):o.removeAttribute(e):t=t.toString(),N.a.W<=8&&e in ie?(e=ie[e],r?o.removeAttribute(e):o[e]=t):r||(n?o.setAttributeNS(n,e,t):o.setAttribute(e,t)),\"name\"===e&&N.a.Yc(o,r?\"\":t)})}},N.c.checked={after:[\"value\",\"attr\"],init:function(i,a,s){function e(){var e,t,n,r=i.checked,o=f();N.S.Ya()||!r&&(p||N.S.qa())||(e=N.u.G(a),u?(t=c?e.v():e,(n=l)!==(l=o)?r&&(N.a.Na(t,o,!0),N.a.Na(t,n,!1)):N.a.Na(t,o,r),c&&N.Za(e)&&e(t)):(d&&(o===ke?o=r:r||(o=ke)),N.m.eb(e,s,\"checked\",o,!0)))}var t,u,c,n,l,f=N.xb(function(){return s.has(\"checkedValue\")?N.a.f(s.get(\"checkedValue\")):n?s.has(\"value\")?N.a.f(s.get(\"value\")):i.value:void 0}),d=\"checkbox\"==i.type,p=\"radio\"==i.type;(d||p)&&(t=a(),u=d&&N.a.f(t)instanceof Array,c=!(u&&t.push&&t.splice),n=p||u,l=u?f():ke,p&&!i.name&&N.c.uniqueName.init(i,function(){return!0}),N.o(e,null,{l:i}),N.a.B(i,\"click\",e),N.o(function(){var e=N.a.f(a()),t=f();u?(i.checked=0<=N.a.A(e,t),l=t):i.checked=d&&t===ke?!!e:f()===e},null,{l:i}),t=ke)}},N.m.wa.checked=!0,N.c.checkedValue={update:function(e,t){e.value=N.a.f(t())}},N.c.class={update:function(e,t){t=N.a.Db(N.a.f(t()));N.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=t,N.a.Eb(e,t,!0)}},N.c.css={update:function(n,e){var t=N.a.f(e());null!==t&&\"object\"==_typeof(t)?N.a.P(t,function(e,t){t=N.a.f(t),N.a.Eb(n,e,t)}):N.c.class.update(n,e)}},N.c.enable={update:function(e,t){t=N.a.f(t());t&&e.disabled?e.removeAttribute(\"disabled\"):t||e.disabled||(e.disabled=!0)}},N.c.disable={update:function(e,t){N.c.enable.update(e,function(){return!N.a.f(t())})}},N.c.event={init:function(e,i,a,s,u){var t=i()||{};N.a.P(t,function(o){\"string\"==typeof o&&N.a.B(e,o,function(e){var t,n=i()[o];if(n){try{var r=N.a.la(arguments);s=u.$data,r.unshift(s),t=n.apply(s,r)}finally{!0!==t&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===a.get(o+\"Bubble\")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}})})}},N.c.foreach={Rc:function(n){return function(){var e=n(),t=N.a.bc(e);return t&&\"number\"!=typeof t.length?(N.a.f(e),{foreach:t.data,as:t.as,noChildContext:t.noChildContext,includeDestroyed:t.includeDestroyed,afterAdd:t.afterAdd,beforeRemove:t.beforeRemove,afterRender:t.afterRender,beforeMove:t.beforeMove,afterMove:t.afterMove,templateEngine:N.ba.Ma}):{foreach:e,templateEngine:N.ba.Ma}}},init:function(e,t){return N.c.template.init(e,N.c.foreach.Rc(t))},update:function(e,t,n,r,o){return N.c.template.update(e,N.c.foreach.Rc(t),n,r,o)}},N.m.Ra.foreach=!1,N.h.ea.foreach=!0,N.c.hasfocus={init:function(r,o,i){function e(e){r.__ko_hasfocusUpdating=!0;var t,n=r.ownerDocument;if(\"activeElement\"in n){try{t=n.activeElement}catch(e){t=n.body}e=t===r}n=o(),N.m.eb(n,i,\"hasfocus\",e,!0),r.__ko_hasfocusLastValue=e,r.__ko_hasfocusUpdating=!1}var t=e.bind(null,!0),n=e.bind(null,!1);N.a.B(r,\"focus\",t),N.a.B(r,\"focusin\",t),N.a.B(r,\"blur\",n),N.a.B(r,\"focusout\",n),r.__ko_hasfocusLastValue=!1},update:function(e,t){t=!!N.a.f(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===t||(t?e.focus():e.blur(),!t&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),N.u.G(N.a.Fb,null,[e,t?\"focusin\":\"focusout\"]))}},N.m.wa.hasfocus=!0,N.c.hasFocus=N.c.hasfocus,N.m.wa.hasFocus=\"hasfocus\",N.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){N.a.fc(e,t())}},ae(\"if\"),ae(\"ifnot\",!1,!0),ae(\"with\",!0),N.c.let={init:function(e,t,n,r,o){return t=o.extend(t),N.Oa(t,e),{controlsDescendantBindings:!0}}},N.h.ea.let=!0;var se,ue,ce,le,fe,de,pe,he,ge,ve,me,be,ye,we,xe={};function Te(e,t,n,r){e=N.m.ac(e);for(var o=N.m.Ra,i=0;i<e.length;i++){var a=e[i].key;if(Object.prototype.hasOwnProperty.call(o,a)){var s=o[a];if(\"function\"==typeof s){if(a=s(e[i].value))throw Error(a)}else if(!s)throw Error(\"This template engine does not support the '\"+a+\"' binding within its templates\")}}return n=\"ko.__tr_ambtns(function($context,$element){return(function(){return{ \"+N.m.vb(e,{valueAccessors:!0})+\" } })()},'\"+n.toLowerCase()+\"')\",r.createJavaScriptEvaluatorBlock(n)+t}function Ce(e,t,n,r,o){for(var i,a,s,u,c=Math.min,l=Math.max,f=[],d=e.length,p=t.length,h=p-d||1,g=d+p+1,v=0;v<=d;v++)for(s=a,f.push(a=[]),u=c(p,v+h),i=l(0,v-1);i<=u;i++)a[i]=i?v?e[v-1]===t[i-1]?s[i-1]:c(s[i]||g,a[i-1]||g)+1:i+1:v+1;for(c=[],l=[],h=[],v=d,i=p;v||i;)p=f[v][i]-1,i&&p===f[v][i-1]?l.push(c[c.length]={status:n,value:t[--i],index:i}):v&&p===f[v-1][i]?h.push(c[c.length]={status:r,value:e[--v],index:v}):(--i,--v,o.sparse||c.push({status:\"retained\",value:t[i]}));return N.a.Kc(h,l,!o.dontLimitMoves&&10*d),c.reverse()}N.c.options={init:function(e){if(\"select\"!==N.a.R(e))throw Error(\"options binding applies only to SELECT elements\");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(r,e,o){function t(){return N.a.jb(r.options,function(e){return e.selected})}function i(e,t,n){var r=_typeof(t);return\"function\"==r?t(e):\"string\"==r?e[t]:n}function n(e,t){var n;p&&c?N.i.ma(r,N.i.H):d.length&&(n=0<=N.a.A(d,N.w.M(t[0])),N.a.Zc(t[0],n),p&&!n&&N.u.G(N.a.Fb,null,[r,\"change\"]))}var a=r.multiple,s=0!=r.length&&a?r.scrollTop:null,u=N.a.f(e()),c=o.get(\"valueAllowUnset\")&&o.has(\"value\"),l=o.get(\"optionsIncludeDestroyed\");e={};var f,d=[];c||(a?d=N.a.Mb(t(),N.w.M):0<=r.selectedIndex&&d.push(N.w.M(r.options[r.selectedIndex]))),u&&(void 0===u.length&&(u=[u]),f=N.a.jb(u,function(e){return l||e===ke||null===e||!N.a.f(e._destroy)}),!o.has(\"optionsCaption\")||null!==(u=N.a.f(o.get(\"optionsCaption\")))&&u!==ke&&f.unshift(xe));var p=!1;e.beforeRemove=function(e){r.removeChild(e)},u=n,o.has(\"optionsAfterRender\")&&\"function\"==typeof o.get(\"optionsAfterRender\")&&(u=function(e,t){n(0,t),N.u.G(o.get(\"optionsAfterRender\"),null,[t[0],e!==xe?e:ke])}),N.a.ec(r,f,function(e,t,n){return n.length&&(d=!c&&n[0].selected?[N.w.M(n[0])]:[],p=!0),t=r.ownerDocument.createElement(\"option\"),e===xe?(N.a.Bb(t,o.get(\"optionsCaption\")),N.w.cb(t,ke)):(n=i(e,o.get(\"optionsValue\"),e),N.w.cb(t,N.a.f(n)),e=i(e,o.get(\"optionsText\"),n),N.a.Bb(t,e)),[t]},e,u),c||(a?d.length&&t().length<d.length:d.length&&0<=r.selectedIndex?N.w.M(r.options[r.selectedIndex])!==d[0]:d.length||0<=r.selectedIndex)&&N.u.G(N.a.Fb,null,[r,\"change\"]),(c||N.S.Ya())&&N.i.ma(r,N.i.H),N.a.wd(r),s&&20<Math.abs(s-r.scrollTop)&&(r.scrollTop=s)}},N.c.options.$b=N.a.g.Z(),N.c.selectedOptions={init:function(r,o,n){function e(){var e=o(),t=[];N.a.D(r.getElementsByTagName(\"option\"),function(e){e.selected&&t.push(N.w.M(e))}),N.m.eb(e,n,\"selectedOptions\",t)}function t(){var n=N.a.f(o()),e=r.scrollTop;n&&\"number\"==typeof n.length&&N.a.D(r.getElementsByTagName(\"option\"),function(e){var t=0<=N.a.A(n,N.w.M(e));e.selected!=t&&N.a.Zc(e,t)}),r.scrollTop=e}if(\"select\"!=N.a.R(r))throw Error(\"selectedOptions binding applies only to SELECT elements\");var i;N.i.subscribe(r,N.i.H,function(){i?e():(N.a.B(r,\"change\",e),i=N.o(t,null,{l:r}))},null,{notifyImmediately:!0})},update:function(){}},N.m.wa.selectedOptions=!0,N.c.style={update:function(r,e){e=N.a.f(e()||{});N.a.P(e,function(e,t){var n;null!==(t=N.a.f(t))&&t!==ke&&!1!==t||(t=\"\"),Ne?Ne(r).css(e,t):/^--/.test(e)?r.style.setProperty(e,t):(e=e.replace(/-(\\w)/g,function(e,t){return t.toUpperCase()}),n=r.style[e],(r.style[e]=t)===n||r.style[e]!=n||isNaN(t)||(r.style[e]=t+\"px\"))})}},N.c.submit={init:function(r,o,e,t,i){if(\"function\"!=typeof o())throw Error(\"The value for a submit binding must be a function\");N.a.B(r,\"submit\",function(e){var t,n=o();try{t=n.call(i.$data,r)}finally{!0!==t&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}})}},N.c.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){N.a.Bb(e,t())}},N.h.ea.text=!0,Ee&&Ee.navigator&&(e=function(e){if(e)return parseFloat(e[1])},se=Ee.navigator.userAgent,(ue=Ee.opera&&Ee.opera.version&&parseInt(Ee.opera.version()))||(de=e(se.match(/Edge\\/([^ ]+)$/)))||e(se.match(/Chrome\\/([^ ]+)/))||(ce=e(se.match(/Version\\/([^ ]+) Safari/)))||(le=e(se.match(/Firefox\\/([^ ]+)/)))||(fe=N.a.W||e(se.match(/MSIE ([^ ]+)/)))||(fe=e(se.match(/rv:([^ )]+)/)))),8<=fe&&fe<10&&(pe=N.a.g.Z(),he=N.a.g.Z(),ge=function(e){var t=this.activeElement;(t=t&&N.a.g.get(t,he))&&t(e)},ve=function(e,t){var n=e.ownerDocument;N.a.g.get(n,pe)||(N.a.g.set(n,pe,!0),N.a.B(n,\"selectionchange\",ge)),N.a.g.set(e,he,t)}),N.c.textInput={init:function(n,r,t){function e(e,t){N.a.B(n,e,t)}function o(){a||(s=n.value,a=N.a.setTimeout(i,4))}function i(){clearTimeout(a),s=a=ke;var e=n.value;u!==e&&(u=e,N.m.eb(r(),t,\"textInput\",e))}var a,s,u=n.value,c=9==N.a.W?o:i,l=!1;fe&&e(\"keypress\",i),fe<11&&e(\"propertychange\",function(e){l||\"value\"!==e.propertyName||c(e)}),8==fe&&(e(\"keyup\",i),e(\"keydown\",i)),ve&&(ve(n,c),e(\"dragend\",o)),(!fe||9<=fe)&&e(\"input\",c),ce<5&&\"textarea\"===N.a.R(n)?(e(\"keydown\",o),e(\"paste\",o),e(\"cut\",o)):ue<11?e(\"keydown\",o):le<4?(e(\"DOMAutoComplete\",i),e(\"dragdrop\",i),e(\"drop\",i)):de&&\"number\"===n.type&&e(\"keydown\",o),e(\"change\",i),e(\"blur\",i),N.o(function e(){var t=N.a.f(r());null!==t&&t!==ke||(t=\"\"),s!==ke&&t===s?N.a.setTimeout(e,4):n.value!==t&&(l=!0,n.value=t,l=!1,u=n.value)},null,{l:n})}},N.m.wa.textInput=!0,N.c.textinput={preprocess:function(e,t,n){n(\"textInput\",e)}},N.c.uniqueName={init:function(e,t){t()&&(t=\"ko_unique_\"+ ++N.c.uniqueName.rd,N.a.Yc(e,t))}},N.c.uniqueName.rd=0,N.c.using={init:function(e,t,n,r,o){var i;return n.has(\"as\")&&(i={as:n.get(\"as\"),noChildContext:n.get(\"noChildContext\")}),t=o.createChildContext(t,i),N.Oa(t,e),{controlsDescendantBindings:!0}}},N.h.ea.using=!0,N.c.value={init:function(n,r,o){var e,t,i,a,s,u,c,l=N.a.R(n),f=\"input\"==l;!f||\"checkbox\"!=n.type&&\"radio\"!=n.type?(e=[],t=o.get(\"valueUpdate\"),i=!1,a=null,t&&(e=\"string\"==typeof t?[t]:N.a.wc(t),N.a.Pa(e,\"change\")),s=function(){a=null,i=!1;var e=r(),t=N.w.M(n);N.m.eb(e,o,\"value\",t)},!N.a.W||!f||\"text\"!=n.type||\"off\"==n.autocomplete||n.form&&\"off\"==n.form.autocomplete||-1!=N.a.A(e,\"propertychange\")||(N.a.B(n,\"propertychange\",function(){i=!0}),N.a.B(n,\"focus\",function(){i=!1}),N.a.B(n,\"blur\",function(){i&&s()})),N.a.D(e,function(e){var t=s;N.a.Ud(e,\"after\")&&(t=function(){a=N.w.M(n),N.a.setTimeout(s,0)},e=e.substring(5)),N.a.B(n,e,t)}),u=f&&\"file\"==n.type?function(){var e=N.a.f(r());null===e||e===ke||\"\"===e?n.value=\"\":N.u.G(s)}:function(){var e=N.a.f(r()),t=N.w.M(n);null!==a&&e===a?N.a.setTimeout(u,0):e===t&&t!==ke||(\"select\"===l?(t=o.get(\"valueAllowUnset\"),N.w.cb(n,e,t),t||e===N.w.M(n)||N.u.G(s)):N.w.cb(n,e))},\"select\"===l?N.i.subscribe(n,N.i.H,function(){c?(o.get(\"valueAllowUnset\")?u:s)():(N.a.B(n,\"change\",s),c=N.o(u,null,{l:n}))},null,{notifyImmediately:!0}):(N.a.B(n,\"change\",s),N.o(u,null,{l:n}))):N.ib(n,{checkedValue:r})},update:function(){}},N.m.wa.value=!0,N.c.visible={update:function(e,t){var n=N.a.f(t()),t=\"none\"!=e.style.display;n&&!t?e.style.display=\"\":!n&&t&&(e.style.display=\"none\")}},N.c.hidden={update:function(e,t){N.c.visible.update(e,function(){return!N.a.f(t())})}},N.c.click={init:function(e,t,n,r,o){return N.c.event.init.call(this,e,function(){var e={};return e.click=t(),e},n,r,o)}},N.ca=function(){},N.ca.prototype.renderTemplateSource=function(){throw Error(\"Override renderTemplateSource\")},N.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error(\"Override createJavaScriptEvaluatorBlock\")},N.ca.prototype.makeTemplateSource=function(e,t){if(\"string\"==typeof e){t=(t=t||Se).getElementById(e);if(!t)throw Error(\"Cannot find template with ID \"+e);return new N.C.F(t)}if(1==e.nodeType||8==e.nodeType)return new N.C.ia(e);throw Error(\"Unknown template type: \"+e)},N.ca.prototype.renderTemplate=function(e,t,n,r){return e=this.makeTemplateSource(e,r),this.renderTemplateSource(e,t,n,r)},N.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data(\"isRewritten\")},N.ca.prototype.rewriteTemplate=function(e,t,n){t=t((e=this.makeTemplateSource(e,n)).text()),e.text(t),e.data(\"isRewritten\",!0)},N.b(\"templateEngine\",N.ca),N.kc=(me=/(<([a-z]+\\d*)(?:\\s+(?!data-bind\\s*=\\s*)[a-z0-9\\-]+(?:=(?:\\\"[^\\\"]*\\\"|\\'[^\\']*\\'|[^>]*))?)*\\s+)data-bind\\s*=\\s*([\"'])([\\s\\S]*?)\\3/gi,be=/\\x3c!--\\s*ko\\b\\s*([\\s\\S]*?)\\s*--\\x3e/g,{xd:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,function(e){return N.kc.Ld(e,t)},n)},Ld:function(e,i){return e.replace(me,function(e,t,n,r,o){return Te(o,t,n,i)}).replace(be,function(e,t){return Te(t,\"\\x3c!-- ko --\\x3e\",\"#comment\",i)})},md:function(n,r){return N.aa.Xb(function(e,t){e=e.nextSibling;e&&e.nodeName.toLowerCase()===r&&N.ib(e,n,t)})}}),N.b(\"__tr_ambtns\",N.kc.md),function(){N.C={},N.C.F=function(e){var t;(this.F=e)&&(t=N.a.R(e),this.ab=\"script\"===t?1:\"textarea\"===t?2:\"template\"==t&&e.content&&11===e.content.nodeType?3:4)},N.C.F.prototype.text=function(){var e=1===this.ab?\"text\":2===this.ab?\"value\":\"innerHTML\";if(0==arguments.length)return this.F[e];var t=arguments[0];\"innerHTML\"==e?N.a.fc(this.F,t):this.F[e]=t};var t=N.a.g.Z()+\"_\";N.C.F.prototype.data=function(e){if(1===arguments.length)return N.a.g.get(this.F,t+e);N.a.g.set(this.F,t+e,arguments[1])};var o=N.a.g.Z();N.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var t,n=N.a.g.get(e,o)||{},r=n.lb||(3===this.ab?e.content:4===this.ab?e:ke);return r&&!n.jd||(t=this.text())&&t!==n.bb&&(r=N.a.Md(t,e.ownerDocument),N.a.g.set(e,o,{lb:r,bb:t,jd:!0})),r}n=arguments[0],this.ab!==ke&&this.text(\"\"),N.a.g.set(e,o,{lb:n})},N.C.ia=function(e){this.F=e},N.C.ia.prototype=new N.C.F,N.C.ia.prototype.constructor=N.C.ia,N.C.ia.prototype.text=function(){if(0==arguments.length){var e=N.a.g.get(this.F,o)||{};return e.bb===ke&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}N.a.g.set(this.F,o,{bb:arguments[0]})},N.b(\"templateSources\",N.C),N.b(\"templateSources.domElement\",N.C.F),N.b(\"templateSources.anonymousTemplate\",N.C.ia)}(),function(){function r(e,t,n){var r;for(t=N.h.nextSibling(t);e&&(r=e)!==t;)n(r,e=N.h.nextSibling(r))}function d(e,t){if(e.length){var o=e[0],i=e[e.length-1],n=o.parentNode,a=N.ga.instance,s=a.preprocessNode;if(s){if(r(o,i,function(e,t){var n=e.previousSibling,r=s.call(a,e);r&&(e===o&&(o=r[0]||t),e===i&&(i=r[r.length-1]||n))}),e.length=0,!o)return;o===i?e.push(o):(e.push(o,i),N.a.Ua(e,n))}r(o,i,function(e){1!==e.nodeType&&8!==e.nodeType||N.vc(t,e)}),r(o,i,function(e){1!==e.nodeType&&8!==e.nodeType||N.aa.cd(e,[t])}),N.a.Ua(e,n)}}function u(e){return e.nodeType?e:0<e.length?e[0]:null}function p(e,t,n,r,o){o=o||{};var i=(e&&u(e)||n||{}).ownerDocument,a=o.templateEngine||c;if(N.kc.xd(n,a,i),\"number\"!=typeof(n=a.renderTemplate(n,r,o,i)).length||0<n.length&&\"number\"!=typeof n[0].nodeType)throw Error(\"Template engine must return an array of DOM nodes\");switch(i=!1,t){case\"replaceChildren\":N.h.va(e,n),i=!0;break;case\"replaceNode\":N.a.Xc(e,n),i=!0;break;case\"ignoreTargetNode\":break;default:throw Error(\"Unknown renderMode: \"+t)}return i&&(d(n,r),o.afterRender&&N.u.G(o.afterRender,null,[n,r[o.as||\"$data\"]]),\"replaceChildren\"==t&&N.i.ma(e,N.i.H)),n}function h(e,t,n){return N.O(e)?e():\"function\"==typeof e?e(t,n):e}var c;N.gc=function(e){if(e!=ke&&!(e instanceof N.ca))throw Error(\"templateEngine must inherit from ko.templateEngine\");c=e},N.dc=function(n,r,o,i,a){if(((o=o||{}).templateEngine||c)==ke)throw Error(\"Set a template engine before calling renderTemplate\");if(a=a||\"replaceChildren\",i){var s=u(i);return N.$(function(){var e=r&&r instanceof N.fa?r:new N.fa(r,null,null,null,{exportDependencies:!0}),t=h(n,e.$data,e),e=p(i,a,t,e,o);\"replaceNode\"==a&&(s=u(i=e))},null,{Sa:function(){return!s||!N.a.Sb(s)},l:s&&\"replaceNode\"==a?s.parentNode:s})}return N.aa.Xb(function(e){N.dc(n,r,o,e,\"replaceNode\")})},N.Qd=function(n,t,r,o,i){function a(e,t){N.u.G(N.a.ec,null,[o,e,u,r,s,t]),N.i.ma(o,N.i.H)}function s(e,t){d(t,c),r.afterRender&&r.afterRender(t,e),c=null}function u(e,t){c=i.createChildContext(e,{as:l,noChildContext:r.noChildContext,extend:function(e){e.$index=t,l&&(e[l+\"Index\"]=t)}});e=h(n,e,c);return p(o,\"ignoreTargetNode\",e,c,r)}var c,l=r.as,f=!1===r.includeDestroyed||N.options.foreachHidesDestroyed&&!r.includeDestroyed;if(f||r.beforeRemove||!N.Pc(t))return N.$(function(){var e=N.a.f(t)||[];void 0===e.length&&(e=[e]),a(e=f?N.a.jb(e,function(e){return e===ke||null===e||!N.a.f(e._destroy)}):e)},null,{l:o});a(t.v());var e=t.subscribe(function(e){a(t(),e)},null,\"arrayChange\");return e.l(o),e};var a=N.a.g.Z(),o=N.a.g.Z();N.c.template={init:function(e,t){t=N.a.f(t());if(\"string\"==typeof t||\"name\"in t)N.h.Ea(e);else if(\"nodes\"in t){if(t=t.nodes||[],N.O(t))throw Error('The \"nodes\" option must be a plain, non-observable array.');var n=t[0]&&t[0].parentNode;n&&N.a.g.get(n,o)||(n=N.a.Yb(t),N.a.g.set(n,o,!0)),new N.C.ia(e).nodes(n)}else{if(!(0<(t=N.h.childNodes(e)).length))throw Error(\"Anonymous template defined, but no template content was provided\");n=N.a.Yb(t),new N.C.ia(e).nodes(n)}return{controlsDescendantBindings:!0}},update:function(e,t,n,r,o){var i=t();n=!0,r=null,\"string\"==typeof(t=N.a.f(i))?t={}:(i=\"name\"in t?t.name:e,(n=(n=\"if\"in t?N.a.f(t.if):n)&&\"ifnot\"in t?!N.a.f(t.ifnot):n)&&!i&&(n=!1)),\"foreach\"in t?r=N.Qd(i,n&&t.foreach||[],t,e,o):n?(n=o,\"data\"in t&&(n=o.createChildContext(t.data,{as:t.as,noChildContext:t.noChildContext,exportDependencies:!0})),r=N.dc(i,n,t,e)):N.h.Ea(e),o=r,(t=N.a.g.get(e,a))&&\"function\"==typeof t.s&&t.s(),N.a.g.set(e,a,!o||o.ja&&!o.ja()?ke:o)}},N.m.Ra.template=function(e){return 1==(e=N.m.ac(e)).length&&e[0].unknown||N.m.Id(e,\"name\")?null:\"This template engine does not support anonymous templates nested within its templates\"},N.h.ea.template=!0}(),N.b(\"setTemplateEngine\",N.gc),N.b(\"renderTemplate\",N.dc),N.a.Kc=function(e,t,n){if(e.length&&t.length)for(var r,o,i,a,s=r=0;(!n||s<n)&&(i=e[r]);++r){for(o=0;a=t[o];++o)if(i.value===a.value){i.moved=a.index,a.moved=i.index,t.splice(o,1),s=o=0;break}s+=o}},N.a.Pb=function(e,t,n){return n=\"boolean\"==typeof n?{dontLimitMoves:n}:n||{},(e=e||[]).length<(t=t||[]).length?Ce(e,t,\"added\",\"deleted\",n):Ce(t,e,\"deleted\",\"added\",n)},N.b(\"utils.compareArrays\",N.a.Pb),ye=N.a.g.Z(),we=N.a.g.Z(),N.a.ec=function(t,e,n,r,o,i){function a(e){c={Aa:e,pb:N.ta(m++)},g.push(c),h||T.push(c)}function s(e){c=p[e],m!==c.pb.v()&&x.push(c),c.pb(m++),N.a.Ua(c.Y,t),g.push(c)}function u(t,n){if(t)for(var r=0,e=n.length;r<e;r++)N.a.D(n[r].Y,function(e){t(e,r,n[r].Aa)})}void 0===(e=e||[]).length&&(e=[e]),r=r||{};var c,l,f,d,p=N.a.g.get(t,ye),h=!p,g=[],v=0,m=0,b=[],y=[],w=[],x=[],T=[],C=0;if(h)N.a.D(e,a);else{(!i||p&&p._countWaitingForRemove)&&(_=N.a.Mb(p,function(e){return e.Aa}),i=N.a.Pb(_,e,{dontLimitMoves:r.dontLimitMoves,sparse:!0}));for(var k,E,S,_=0;k=i[_];_++)switch(E=k.moved,S=k.index,k.status){case\"deleted\":for(;v<S;)s(v++);E===ke&&((c=p[v]).$&&(c.$.s(),c.$=ke),N.a.Ua(c.Y,t).length&&(r.beforeRemove&&(g.push(c),C++,c.Aa===we?c=null:w.push(c)),c&&b.push.apply(b,c.Y))),v++;break;case\"added\":for(;m<S;)s(v++);E!==ke?(y.push(g.length),s(E)):a(k.value)}for(;m<e.length;)s(v++);g._countWaitingForRemove=C}N.a.g.set(t,ye,g),u(r.beforeMove,x),N.a.D(b,r.beforeRemove?N.oa:N.removeNode);try{d=t.ownerDocument.activeElement}catch(e){}if(y.length)for(;(_=y.shift())!=ke;){for(c=g[_],l=ke;_;)if((f=g[--_].Y)&&f.length){l=f[f.length-1];break}for(e=0;v=c.Y[e];l=v,e++)N.h.Wb(t,v,l)}for(_=0;c=g[_];_++){for(c.Y||N.a.extend(c,function(t,n,r,o,i){var a=[],e=N.$(function(){var e=n(r,i,N.a.Ua(a,t))||[];0<a.length&&(N.a.Xc(a,e),o&&N.u.G(o,null,[r,e,i])),a.length=0,N.a.Nb(a,e)},null,{l:t,Sa:function(){return!N.a.kd(a)}});return{Y:a,$:e.ja()?e:ke}}(t,n,c.Aa,o,c.pb)),e=0;v=c.Y[e];l=v,e++)N.h.Wb(t,v,l);!c.Ed&&o&&(o(c.Aa,c.Y,c.pb),c.Ed=!0,l=c.Y[c.Y.length-1])}for(d&&t.ownerDocument.activeElement!=d&&d.focus(),u(r.beforeRemove,w),_=0;_<w.length;++_)w[_].Aa=we;u(r.afterMove,x),u(r.afterAdd,T)},N.b(\"utils.setDomNodeChildrenFromArrayMapping\",N.a.ec),N.ba=function(){this.allowTemplateRewriting=!1},N.ba.prototype=new N.ca,N.ba.prototype.constructor=N.ba,N.ba.prototype.renderTemplateSource=function(e,t,n,r){return(t=N.a.W<9||!e.nodes?null:e.nodes())?N.a.la(t.cloneNode(!0).childNodes):(e=e.text(),N.a.ua(e,r))},N.ba.Ma=new N.ba,N.gc(N.ba.Ma),N.b(\"nativeTemplateEngine\",N.ba),function(){N.$a=function(){var i=this.Hd=function(){if(!Ne||!Ne.tmpl)return 0;try{if(0<=Ne.tmpl.tag.tmpl.open.toString().indexOf(\"__\"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(e,t,n,r){if(r=r||Se,n=n||{},i<2)throw Error(\"Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.\");var o=e.data(\"precompiled\");return o||(o=e.text()||\"\",o=Ne.template(null,\"{{ko_with $item.koBindingContext}}\"+o+\"{{/ko_with}}\"),e.data(\"precompiled\",o)),e=[t.$data],t=Ne.extend({koBindingContext:t},n.templateOptions),(t=Ne.tmpl(o,e,t)).appendTo(r.createElement(\"div\")),Ne.fragments={},t},this.createJavaScriptEvaluatorBlock=function(e){return\"{{ko_code ((function() { return \"+e+\" })()) }}\"},this.addTemplate=function(e,t){Se.write(\"<script type='text/html' id='\"+e+\"'>\"+t+\"<\\/script>\")},0<i&&(Ne.tmpl.tag.ko_code={open:\"__.push($1 || '');\"},Ne.tmpl.tag.ko_with={open:\"with($1) {\",close:\"} \"})},N.$a.prototype=new N.ca,N.$a.prototype.constructor=N.$a;var e=new N.$a;0<e.Hd&&N.gc(e),N.b(\"jqueryTmplTemplateEngine\",N.$a)}()},\"function\"==typeof define&&define.amd?define([\"exports\",\"require\"],e):\"object\"===(\"undefined\"==typeof exports?\"undefined\":_typeof(exports))&&\"object\"===(\"undefined\"==typeof module?\"undefined\":_typeof(module))?e(module.exports||exports):e(Ee.ko={})}(),function(e){if(\"function\"==typeof require&&\"object\"===(\"undefined\"==typeof exports?\"undefined\":_typeof(exports))&&\"object\"===(\"undefined\"==typeof module?\"undefined\":_typeof(module)))e(require(\"knockout\"),exports);else if(\"function\"==typeof define&&define.amd)define([\"knockout\",\"exports\"],e);else{if(\"undefined\"==typeof ko)throw new Error(\"Knockout is required, please ensure it is loaded before loading this mapping plug-in\");e(ko,ko.mapping={})}}(function(q,M){q.mapping=M;var L,P,s=!0,I=\"__ko_mapping__\",u=q.dependentObservable,i=0,a=[\"create\",\"update\",\"key\",\"arrayChanged\"],R={},e={include:[\"_destroy\"],ignore:[],copy:[],observe:[]},c=e;function o(e,t){var n,r;for(n in t)t.hasOwnProperty(n)&&t[n]&&(r=M.getType(e[n]),n&&e[n]&&\"array\"!==r&&\"string\"!==r?o(e[n],t[n]):(r=\"array\"===M.getType(e[n])&&\"array\"===M.getType(t[n]),e[n]=r?function(){for(var e,t,n,r=arguments,o=r.length,i={},a=[];o--;)for(e=(n=r[o]).length;e--;)i[t=n[e]]||(i[t]=1,a.push(t));return a}(e[n],t[n]):t[n]))}function H(e,t){var n={};return o(n,e),o(n,t),n}function p(e,t){for(var n=H({},e),r=a.length-1;0<=r;r--){var o=a[r];n[o]&&(n[\"\"]instanceof Object||(n[\"\"]={}),n[\"\"][o]=n[o],delete n[o])}return t&&(n.ignore=l(t.ignore,n.ignore),n.include=l(t.include,n.include),n.copy=l(t.copy,n.copy),n.observe=l(t.observe,n.observe)),n.ignore=l(n.ignore,c.ignore),n.include=l(n.include,c.include),n.copy=l(n.copy,c.copy),n.observe=l(n.observe,c.observe),n.mappedProperties=n.mappedProperties||{},n.copiedProperties=n.copiedProperties||{},n}function l(e,t){return void 0===e?e=[]:\"array\"!==M.getType(e)&&(e=[e]),void 0===t?t=[]:\"array\"!==M.getType(t)&&(t=[t]),q.utils.arrayGetDistinctValues(e.concat(t))}function B(a,e){var t=q.dependentObservable;q.dependentObservable=function(e,t,n){n=n||{};var r=(n=e&&\"object\"===_typeof(e)?e:n).deferEvaluation,o=n.pure,i=!1;n.deferEvaluation=!0;n=u(e,t,n);return r||o||(n=function(t){var e=q.dependentObservable;q.dependentObservable=u;var n=q.isWriteableObservable(t);q.dependentObservable=e;n=u({read:function(){return i||(q.utils.arrayRemoveItem(a,t),i=!0),t.apply(t,arguments)},write:n&&function(e){return t(e)},deferEvaluation:!0});return s&&(n._wrapper=!0),n.__DO=t,n}(n),a.push(n)),n},q.dependentObservable.fn=u.fn,q.computed=q.dependentObservable;e=e();return q.dependentObservable=t,q.computed=q.dependentObservable,e}function F(e,t,n){for(var r=0,o=e.length;r<o;r++)if(!0!==n[r]&&e[r]===t)return r;return null}function f(e,t){var n;return t&&(n=t(e)),\"undefined\"===M.getType(n)&&(n=e),q.utils.unwrapObservable(n)}function $(e,t,n){for(var r=0,o=(e=q.utils.unwrapObservable(e)).length;r<o;r++){var i=e[r];if(f(i,n)===t)return i}throw new Error(\"When calling ko.update*, the key '\"+t+\"' was not found!\")}function W(e,t){return q.utils.arrayMap(q.utils.unwrapObservable(e),function(e){return t?f(e,t):e})}function V(e,t){if(\"array\"===M.getType(e))for(var n=0;n<e.length;n++)t(n);else for(var r in e)e.hasOwnProperty(r)&&t(r)}function U(e){if(null!==e){e=M.getType(e);return\"object\"===e||\"array\"===e}}function J(e){return(\"\"+e).replace(/~/g,\"~~\").replace(/\\[/g,\"~[\").replace(/]/g,\"~]\").replace(/\\./g,\"~.\")}function d(){var r=[],o=[];this.save=function(e,t){var n=q.utils.arrayIndexOf(r,e);0<=n?o[n]=t:(r.push(e),o.push(t))},this.get=function(e){e=q.utils.arrayIndexOf(r,e);return 0<=e?o[e]:void 0}}function h(){function n(e){var t;try{t=e}catch(e){t=\"$$$\"}var n=r[t];return r.hasOwnProperty(t)||(n=new d,r[t]=n),n}var r={};this.save=function(e,t){n(e).save(e,t)},this.get=function(e){return n(e).get(e)}}M.isMapped=function(e){e=q.utils.unwrapObservable(e);return e&&e[I]},M.fromJS=function(e){if(0===arguments.length)throw new Error(\"When calling ko.fromJS, pass the object you want to convert.\");try{var t;i||(L=[],P=new h),i++,2===arguments.length&&(arguments[1][I]?t=arguments[1]:n=arguments[1]),3===arguments.length&&(n=arguments[1],t=arguments[2]);var n,r=function o(i,a,s,n,t,u,e){var r=\"array\"===M.getType(q.utils.unwrapObservable(a));u=u||\"\";{var c;M.isMapped(i)&&(c=q.utils.unwrapObservable(i)[I],s=H(c,s))}var l={data:a,parent:e||t};var f=function(){return s[n]&&s[n].create instanceof Function};var d=function(e){return B(L,function(){return q.utils.unwrapObservable(t)instanceof Array?s[n].create({data:e||l.data,parent:l.parent,skip:R}):s[n].create({data:e||l.data,parent:l.parent})})};var p=function(){return s[n]&&s[n].update instanceof Function};var h=function(e,t){var t={data:t||l.data,parent:l.parent,target:q.utils.unwrapObservable(e)};return q.isWriteableObservable(e)&&(t.observable=e),s[n].update(t)};e=P.get(a);if(e)return e;n=n||\"\";if(r){var g=[],e=!1,v=function(e){return e};s[n]&&s[n].key&&(v=s[n].key,e=!0),q.isObservable(i)||((i=q.observableArray([])).mappedRemove=function(t){var n=\"function\"==typeof t?t:function(e){return e===v(t)};return i.remove(function(e){return n(v(e))})},i.mappedRemoveAll=function(e){var t=W(e,v);return i.remove(function(e){return-1!==q.utils.arrayIndexOf(t,v(e))})},i.mappedDestroy=function(t){var n=\"function\"==typeof t?t:function(e){return e===v(t)};return i.destroy(function(e){return n(v(e))})},i.mappedDestroyAll=function(e){var t=W(e,v);return i.destroy(function(e){return-1!==q.utils.arrayIndexOf(t,v(e))})},i.mappedIndexOf=function(e){var t=W(i(),v),e=v(e);return q.utils.arrayIndexOf(t,e)},i.mappedGet=function(e){return i()[i.mappedIndexOf(e)]},i.mappedCreate=function(e){if(-1!==i.mappedIndexOf(e))throw new Error(\"There already is an object with the key that you specified.\");var t=f()?d(e):e;return p()&&(e=h(t,e),q.isWriteableObservable(t)?t(e):t=e),i.push(t),t});var r=W(q.utils.unwrapObservable(i),v).sort(),m=W(a,v);e&&m.sort();var b,y,w,x=q.utils.compareArrays(r,m),T={},C=q.utils.unwrapObservable(a),k={},E=!0;for(b=0,y=C.length;b<y;b++){if(void 0===(w=v(C[b]))||w instanceof Object){E=!1;break}k[w]=C[b]}var S,_,N,A=[],D=0;for(b=0,y=x.length;b<y;b++){w=x[b];var O=u+\"[\"+J(b)+\"]\";switch(w.status){case\"added\":S=E?k[w.value]:$(q.utils.unwrapObservable(a),w.value,v),N=o(void 0,S,s,n,i,O,t),f()||(N=q.utils.unwrapObservable(N)),_=F(q.utils.unwrapObservable(a),S,T),N===R?D++:A[_-D]=N,T[_]=!0;break;case\"retained\":S=E?k[w.value]:$(q.utils.unwrapObservable(a),w.value,v),N=$(i,w.value,v),o(N,S,s,n,i,O,t),_=F(q.utils.unwrapObservable(a),S,T),A[_]=N,T[_]=!0;break;case\"deleted\":N=$(i,w.value,v)}g.push({event:w.status,item:N})}i(A),s[n]&&s[n].arrayChanged&&q.utils.arrayForEach(g,function(e){s[n].arrayChanged(e.event,e.item)})}else if(U(a)){if(!(i=q.utils.unwrapObservable(i))){if(f()){var m=d();return m=p()?h(m):m}if(p())return h();i={}}if(p()&&(i=h(i)),P.save(a,i),p())return i;V(a,function(e){var t=u.length?u+\".\"+J(e):J(e);if(-1===q.utils.arrayIndexOf(s.ignore,t))if(-1===q.utils.arrayIndexOf(s.copy,t)){if(\"object\"!==_typeof(a[e])&&\"array\"!==M.getType(a[e])&&0<s.observe.length&&-1===q.utils.arrayIndexOf(s.observe,t))return i[e]=a[e],void(s.copiedProperties[t]=!0);var n=P.get(a[e]),r=o(i[e],a[e],s,e,i,t,i),r=n||r;if(0<s.observe.length&&-1===q.utils.arrayIndexOf(s.observe,t))return i[e]=q.utils.unwrapObservable(r),void(s.copiedProperties[t]=!0);q.isWriteableObservable(i[e])?(r=q.utils.unwrapObservable(r),i[e]()!==r&&i[e](r)):(r=void 0===i[e]?r:q.utils.unwrapObservable(r),i[e]=r),s.mappedProperties[t]=!0}else i[e]=a[e]})}else if(\"function\"===M.getType(a))i=p()?q.isWriteableObservable(a)?(a(h(a)),a):h(a):a;else{if(q.isWriteableObservable(i))return j=p()?h(i):q.utils.unwrapObservable(a),i(j),j;var j=f()||p();if(i=f()?d():q.observable(q.utils.unwrapObservable(a)),p()&&i(h(i)),j)return i}return i}(t,e,n=p(n=t?H(n,t[I]):n));if(t&&(r=t),!--i)for(;L.length;){var o=L.pop();o&&(o(),o.__DO.throttleEvaluation=o.throttleEvaluation)}return r[I]=H(r[I],n),r}catch(e){throw i=0,e}},M.fromJSON=function(e){var t=Array.prototype.slice.call(arguments,0);return t[0]=q.utils.parseJson(e),M.fromJS.apply(this,t)},M.toJS=function(e,t){if(c||M.resetDefaultOptions(),0===arguments.length)throw new Error(\"When calling ko.mapping.toJS, pass the object you want to convert.\");if(\"array\"!==M.getType(c.ignore))throw new Error(\"ko.mapping.defaultOptions().ignore should be an array.\");if(\"array\"!==M.getType(c.include))throw new Error(\"ko.mapping.defaultOptions().include should be an array.\");if(\"array\"!==M.getType(c.copy))throw new Error(\"ko.mapping.defaultOptions().copy should be an array.\");return t=p(t,e[I]),M.visitModel(e,function(e){return q.utils.unwrapObservable(e)},t)},M.toJSON=function(e,t,n,r){t=M.toJS(e,t);return q.utils.stringifyJson(t,n,r)},M.defaultOptions=function(){if(!(0<arguments.length))return c;c=arguments[0]},M.resetDefaultOptions=function(){c={include:e.include.slice(0),ignore:e.ignore.slice(0),copy:e.copy.slice(0),observe:e.observe.slice(0)}},M.getType=function(e){if(e&&\"object\"===_typeof(e)){if(e.constructor===Date)return\"date\";if(e.constructor===Array)return\"array\"}return _typeof(e)},M.visitModel=function(e,u,c){var l;(c=c||{}).visitedObjects=c.visitedObjects||new h;var f=q.utils.unwrapObservable(e);if(!U(f))return u(e,c.parentName);c=p(c,f[I]),u(e,c.parentName),l=\"array\"===M.getType(f)?[]:{},c.visitedObjects.save(e,l);var d=c.parentName;return V(f,function(e){var t=J(e);if(!c.ignore||-1===q.utils.arrayIndexOf(c.ignore,t)){var n,r,o=f[e];if(c.parentName=(n=d,r=f,i=e,a=n||\"\",\"array\"===M.getType(r)?n&&(a+=\"[\"+J(i)+\"]\"):(n&&(a+=\".\"),a+=J(i)),a),-1===q.utils.arrayIndexOf(c.copy,t)&&-1===q.utils.arrayIndexOf(c.include,t)){var i=f[I];if(i){var a=i.mappedProperties;if(a&&!a[t]){i=i.copiedProperties;if(i&&!i[t]&&\"array\"!==M.getType(f))return}}}switch(M.getType(q.utils.unwrapObservable(o))){case\"object\":case\"array\":case\"undefined\":var s=c.visitedObjects.get(o);l[e]=\"undefined\"!==M.getType(s)?s:M.visitModel(o,u,c);break;default:l[e]=u(o,c.parentName)}}}),l}}),BaseViewModel.prototype.update=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(){},t=this;t.fetching(!0),$.get(t.remoteUrl(),function(e){ko.mapping.fromJS(e,t)},\"json\").always(function(){t.fetching(!1),e()})},ConfigViewModel.prototype=Object.create(BaseViewModel.prototype),ConfigViewModel.prototype.constructor=ConfigViewModel,ConfigViewModel.prototype.update=function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(){};this.fetching(!0),$.get(this.remoteUrl(),function(e){ko.mapping.fromJS(e,t),t.mqtt_protocol_enable(e.hasOwnProperty(\"mqtt_protocol\")),t.mqtt_port_enable(e.hasOwnProperty(\"mqtt_port\")),t.mqtt_reject_unauthorized_enable(e.hasOwnProperty(\"mqtt_reject_unauthorized\")),e.hasOwnProperty(\"mqtt_protocol\")&&t.mqtt_protocol(e.mqtt_protocol)},\"json\").always(function(){t.fetching(!1),e()})},StatusViewModel.prototype=Object.create(BaseViewModel.prototype),StatusViewModel.prototype.constructor=StatusViewModel;\n"
  "//# sourceMappingURL=lib.js.map\n";
